mercurial/utils/procutil.py
changeset 43115 4aa72cdf616f
parent 43106 d783f945a701
child 43165 227ba1afcb65
equal deleted inserted replaced
43114:8197b395710e 43115:4aa72cdf616f
   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