Show More
@@ -31,7 +31,7 def loaddoc(topic): | |||
|
31 | 31 | """Return a delayed loader for help/topic.txt.""" |
|
32 | 32 | |
|
33 | 33 | def loader(): |
|
34 |
if |
|
|
34 | if util.mainfrozen(): | |
|
35 | 35 | module = sys.executable |
|
36 | 36 | else: |
|
37 | 37 | module = __file__ |
@@ -28,7 +28,7 def _pythonhook(ui, repo, name, hname, f | |||
|
28 | 28 | 'a module)') % (hname, funcname)) |
|
29 | 29 | modname = funcname[:d] |
|
30 | 30 | oldpaths = sys.path |
|
31 |
if |
|
|
31 | if util.mainfrozen(): | |
|
32 | 32 | # binary installs require sys.path manipulation |
|
33 | 33 | modpath, modfile = os.path.split(modname) |
|
34 | 34 | if modpath and modfile: |
General Comments 0
You need to be logged in to leave comments.
Login now