autohelp: properly sanitize paths
Change-Id: Id2449820c5c10eb40be1f688504ec6bf13cc42a2
This commit is contained in:
parent
0e8d8de022
commit
a699f8d764
|
@ -280,7 +280,7 @@ def _sanitize_default(opt):
|
|||
if isinstance(opt, cfg.StrOpt) and default.strip() != default:
|
||||
return '"%s"' % default
|
||||
|
||||
for pathelm in sys.path[1:]:
|
||||
for pathelm in sys.path:
|
||||
if pathelm == '':
|
||||
continue
|
||||
if pathelm.endswith('/'):
|
||||
|
|
Loading…
Reference in New Issue