autohelp: fix poor behavior of _sanitize_default
Change-Id: I9a9d41785c7674056a6d553941510ca1e5b30383
This commit is contained in:
parent
b4f4013423
commit
d0c8b278de
|
@ -203,7 +203,7 @@ def _sanitize_default(opt):
|
||||||
return '"%s"' % default
|
return '"%s"' % default
|
||||||
|
|
||||||
for pathelm in sys.path:
|
for pathelm in sys.path:
|
||||||
if pathelm == '':
|
if pathelm in ('.', ''):
|
||||||
continue
|
continue
|
||||||
if pathelm.endswith('/'):
|
if pathelm.endswith('/'):
|
||||||
pathelm = pathelm[:-1]
|
pathelm = pathelm[:-1]
|
||||||
|
|
Loading…
Reference in New Issue