Show More
@@ -907,7 +907,11 b' def hgexecutable():' | |||||
907 | if hg: |
|
907 | if hg: | |
908 | _sethgexecutable(hg) |
|
908 | _sethgexecutable(hg) | |
909 | elif mainfrozen(): |
|
909 | elif mainfrozen(): | |
910 | _sethgexecutable(sys.executable) |
|
910 | if getattr(sys, 'frozen', None) == 'macosx_app': | |
|
911 | # Env variable set by py2app | |||
|
912 | _sethgexecutable(os.environ['EXECUTABLEPATH']) | |||
|
913 | else: | |||
|
914 | _sethgexecutable(sys.executable) | |||
911 | elif os.path.basename(getattr(mainmod, '__file__', '')) == 'hg': |
|
915 | elif os.path.basename(getattr(mainmod, '__file__', '')) == 'hg': | |
912 | _sethgexecutable(mainmod.__file__) |
|
916 | _sethgexecutable(mainmod.__file__) | |
913 | else: |
|
917 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now