Show More
@@ -9,6 +9,7 b' import sys' | |||
|
9 | 9 | from . import ( |
|
10 | 10 | encoding, |
|
11 | 11 | osutil, |
|
12 | pycompat, | |
|
12 | 13 | ) |
|
13 | 14 | |
|
14 | 15 | def _rcfiles(path): |
@@ -30,7 +31,7 b' def systemrcpath():' | |||
|
30 | 31 | root = 'etc/mercurial' |
|
31 | 32 | # old mod_python does not set sys.argv |
|
32 | 33 | if len(getattr(sys, 'argv', [])) > 0: |
|
33 |
p = os.path.dirname(os.path.dirname( |
|
|
34 | p = os.path.dirname(os.path.dirname(pycompat.sysargv[0])) | |
|
34 | 35 | if p != '/': |
|
35 | 36 | path.extend(_rcfiles(os.path.join(p, root))) |
|
36 | 37 | path.extend(_rcfiles('/' + root)) |
General Comments 0
You need to be logged in to leave comments.
Login now