equal
deleted
inserted
replaced
219 The code supports py2exe (most common, Windows only) and tools/freeze |
219 The code supports py2exe (most common, Windows only) and tools/freeze |
220 (portable, not much used). |
220 (portable, not much used). |
221 """ |
221 """ |
222 return (pycompat.safehasattr(sys, "frozen") or # new py2exe |
222 return (pycompat.safehasattr(sys, "frozen") or # new py2exe |
223 pycompat.safehasattr(sys, "importers") or # old py2exe |
223 pycompat.safehasattr(sys, "importers") or # old py2exe |
224 imp.is_frozen(u"__main__")) # tools/freeze |
224 imp.is_frozen(r"__main__")) # tools/freeze |
225 |
225 |
226 _hgexecutable = None |
226 _hgexecutable = None |
227 |
227 |
228 def hgexecutable(): |
228 def hgexecutable(): |
229 """return location of the 'hg' executable. |
229 """return location of the 'hg' executable. |