[mac] Set __file__ if gramps_launcher.py is run as __main__.
Fixes #11874.
This commit is contained in:
parent
4147bc728a
commit
95e1e8cb67
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user