[mac] Set __file__ if gramps_launcher.py is run as __main__.

Fixes #11874.
This commit is contained in:
John Ralls committed 2020-08-25 17:14:10 -07:00
1 parent 4147bc728a
commit 95e1e8cb67
1 file changed
+2
+2
View File
@@ -40,6 +40,8 @@ environ['USERPROFILE'] = environ['HOME']
environ['APPDATA'] = join(environ['HOME'], 'Library', 'Application Support')
environ['PATH'] = join(bundle_contents, 'MacOS') + ':' + environ['PATH']
if __name__ == '__main__':
__file__ = 'gramps_launcher.py'
import gramps.grampsapp as app
app.main()