ne pas supposer que sys.argv existe ...
This commit is contained in:
parent
f1aeaf59aa
commit
1d361ac0e5
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ try:
|
|||
except ImportError:
|
||||
sys.stderr.write("lc_ldap shortcuts: shaa, cannot import secrets_new. " +
|
||||
"try again with /usr/scripts/ in PYTHONPATH " +
|
||||
"(argv: %s)\n" % " ".join(sys.argv))
|
||||
"(argv: %s)\n" % " ".join(getattr(sys, 'argv', [])))
|
||||
sys.path.append("/usr/scripts")
|
||||
from gestion import secrets_new as secrets
|
||||
sys.path.pop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue