Show More
@@ -362,7 +362,7 b' def walkrepos(path, followsym=False, see' | |||||
362 |
|
362 | |||
363 | def osrcpath(): |
|
363 | def osrcpath(): | |
364 | '''return default os-specific hgrc search path''' |
|
364 | '''return default os-specific hgrc search path''' | |
365 |
path = system |
|
365 | path = systemrcpath() | |
366 | path.extend(user_rcpath()) |
|
366 | path.extend(user_rcpath()) | |
367 | path = [os.path.normpath(f) for f in path] |
|
367 | path = [os.path.normpath(f) for f in path] | |
368 | return path |
|
368 | return path | |
@@ -406,7 +406,7 b" if os.name != 'nt':" | |||||
406 | pass |
|
406 | pass | |
407 | return rcs |
|
407 | return rcs | |
408 |
|
408 | |||
409 |
def system |
|
409 | def systemrcpath(): | |
410 | path = [] |
|
410 | path = [] | |
411 | # old mod_python does not set sys.argv |
|
411 | # old mod_python does not set sys.argv | |
412 | if len(getattr(sys, 'argv', [])) > 0: |
|
412 | if len(getattr(sys, 'argv', [])) > 0: | |
@@ -422,7 +422,7 b' else:' | |||||
422 |
|
422 | |||
423 | _HKEY_LOCAL_MACHINE = 0x80000002L |
|
423 | _HKEY_LOCAL_MACHINE = 0x80000002L | |
424 |
|
424 | |||
425 |
def system |
|
425 | def systemrcpath(): | |
426 | '''return default os-specific hgrc search path''' |
|
426 | '''return default os-specific hgrc search path''' | |
427 | rcpath = [] |
|
427 | rcpath = [] | |
428 | filename = util.executable_path() |
|
428 | filename = util.executable_path() |
General Comments 0
You need to be logged in to leave comments.
Login now