mercurial/util.py
changeset 27764 dd0c5f4d1b53
parent 27755 50c5192e4a5e
child 27765 f1fb93eebb1d
--- a/mercurial/util.py	Sun Jan 10 08:03:58 2016 +0000
+++ b/mercurial/util.py	Sun Jan 10 17:49:01 2016 -0500
@@ -886,7 +886,7 @@
             imp.is_frozen("__main__")) # tools/freeze
 
 # the location of data files matching the source code
-if mainfrozen():
+if mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':
     # executable version (py2exe) doesn't support __file__
     datapath = os.path.dirname(sys.executable)
 else: