Show More
@@ -789,14 +789,12 b' def rcpath():' | |||||
789 | _rcpath = [] |
|
789 | _rcpath = [] | |
790 | for p in os.environ['HGRCPATH'].split(os.pathsep): |
|
790 | for p in os.environ['HGRCPATH'].split(os.pathsep): | |
791 | if not p: continue |
|
791 | if not p: continue | |
792 |
|
|
792 | if os.path.isdir(p): | |
793 | for f in os.listdir(p): |
|
793 | for f in os.listdir(p): | |
794 | if f.endswith('.rc'): |
|
794 | if f.endswith('.rc'): | |
795 | _rcpath.append(os.path.join(p, f)) |
|
795 | _rcpath.append(os.path.join(p, f)) | |
796 |
|
|
796 | else: | |
797 |
|
|
797 | _rcpath.append(p) | |
798 | pass |
|
|||
799 | _rcpath.append(p) |
|
|||
800 | else: |
|
798 | else: | |
801 | _rcpath = os_rcpath() |
|
799 | _rcpath = os_rcpath() | |
802 | return _rcpath |
|
800 | return _rcpath |
General Comments 0
You need to be logged in to leave comments.
Login now