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

Fixes #11874.
This commit is contained in:
John Ralls 2020-08-25 17:12:52 -07:00
parent 4147bc728a
commit 95e1e8cb67

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()