comparison mercurial/help.py @ 14941:4a28cb4df1f8

windows: check util.mainfrozen() instead of ad-hoc checks everywhere
author Augie Fackler <durin42@gmail.com>
date Mon, 25 Jul 2011 16:14:02 -0500
parents 6ab8b17adc03
children 0455463655e0
comparison
equal deleted inserted replaced
14939:b4c06b97dfe0 14941:4a28cb4df1f8
29 29
30 def loaddoc(topic): 30 def loaddoc(topic):
31 """Return a delayed loader for help/topic.txt.""" 31 """Return a delayed loader for help/topic.txt."""
32 32
33 def loader(): 33 def loader():
34 if hasattr(sys, 'frozen'): 34 if util.mainfrozen():
35 module = sys.executable 35 module = sys.executable
36 else: 36 else:
37 module = __file__ 37 module = __file__
38 base = os.path.dirname(module) 38 base = os.path.dirname(module)
39 39