Changeset bc12bb65b708…
Parent 9c86cf5c9866…
by
Changes to one file · Browse files at bc12bb65b708 Showing diff from parent 9c86cf5c9866 Diff from another changeset...
@@ -14,7 +14,8 @@ argv = sys.argv[1:]
if 'THG_OSX_APP' in os.environ:
# Remove the -psn argument supplied by launchd
- argv = argv[1:]
+ if argv[0].startswith('-psn'):
+ argv = argv[1:]
# sys.path as created by py2app doesn't work quite right with demandimport
# Add the explicit path where PyQt4 and other libs are
bundlepath = os.path.dirname(os.path.realpath(__file__))
|
Loading...