Show More
@@ -23,10 +23,10 b' def mainfrozen():' | |||||
23 | (portable, not much used). |
|
23 | (portable, not much used). | |
24 | """ |
|
24 | """ | |
25 | return ( |
|
25 | return ( | |
26 | pycompat.safehasattr(sys, "frozen") |
|
26 | pycompat.safehasattr(sys, "frozen") # new py2exe | |
27 |
or pycompat.safehasattr(sys, "importers") # |
|
27 | or pycompat.safehasattr(sys, "importers") # old py2exe | |
28 |
or imp.is_frozen("__main__") # |
|
28 | or imp.is_frozen("__main__") # tools/freeze | |
29 | ) # tools/freeze |
|
29 | ) | |
30 |
|
30 | |||
31 |
|
31 | |||
32 | # the location of data files matching the source code |
|
32 | # the location of data files matching the source code |
General Comments 0
You need to be logged in to leave comments.
Login now