autohelp: properly sanitize paths

Change-Id: Id2449820c5c10eb40be1f688504ec6bf13cc42a2
This commit is contained in:
Gauvain Pocentek 2015-11-09 09:55:38 +01:00
parent 0e8d8de022
commit a699f8d764
1 changed files with 1 additions and 1 deletions

View File

@ -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('/'):