Show More
@@ -588,7 +588,7 b' else:' | |||||
588 | def os_rcpath(): |
|
588 | def os_rcpath(): | |
589 | '''return default os-specific hgrc search path''' |
|
589 | '''return default os-specific hgrc search path''' | |
590 | path = [] |
|
590 | path = [] | |
591 |
if len(sys |
|
591 | if len(getattr(sys, 'argv', [])) > 0: | |
592 | path.extend(rcfiles(os.path.dirname(sys.argv[0]) + |
|
592 | path.extend(rcfiles(os.path.dirname(sys.argv[0]) + | |
593 | '/../etc/mercurial')) |
|
593 | '/../etc/mercurial')) | |
594 | path.extend(rcfiles('/etc/mercurial')) |
|
594 | path.extend(rcfiles('/etc/mercurial')) |
General Comments 0
You need to be logged in to leave comments.
Login now