Show More
@@ -886,7 +886,7 b' def mainfrozen():' | |||||
886 | imp.is_frozen("__main__")) # tools/freeze |
|
886 | imp.is_frozen("__main__")) # tools/freeze | |
887 |
|
887 | |||
888 | # the location of data files matching the source code |
|
888 | # the location of data files matching the source code | |
889 | if mainfrozen(): |
|
889 | if mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app': | |
890 | # executable version (py2exe) doesn't support __file__ |
|
890 | # executable version (py2exe) doesn't support __file__ | |
891 | datapath = os.path.dirname(sys.executable) |
|
891 | datapath = os.path.dirname(sys.executable) | |
892 | else: |
|
892 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now