equal
deleted
inserted
replaced
257 |
257 |
258 The code supports py2exe (most common, Windows only) and tools/freeze |
258 The code supports py2exe (most common, Windows only) and tools/freeze |
259 (portable, not much used). |
259 (portable, not much used). |
260 """ |
260 """ |
261 return ( |
261 return ( |
262 pycompat.safehasattr(sys, b"frozen") |
262 pycompat.safehasattr(sys, "frozen") |
263 or pycompat.safehasattr(sys, b"importers") # new py2exe |
263 or pycompat.safehasattr(sys, "importers") # new py2exe |
264 or imp.is_frozen(r"__main__") # old py2exe |
264 or imp.is_frozen(r"__main__") # old py2exe |
265 ) # tools/freeze |
265 ) # tools/freeze |
266 |
266 |
267 |
267 |
268 _hgexecutable = None |
268 _hgexecutable = None |