autohelp: fix poor behavior of _sanitize_default

Change-Id: I9a9d41785c7674056a6d553941510ca1e5b30383
This commit is contained in:
Gauvain Pocentek 2016-01-24 11:53:25 +01:00
parent b4f4013423
commit d0c8b278de
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ def _sanitize_default(opt):
return '"%s"' % default
for pathelm in sys.path:
if pathelm == '':
if pathelm in ('.', ''):
continue
if pathelm.endswith('/'):
pathelm = pathelm[:-1]