diff options
Diffstat (limited to '')
-rwxr-xr-x | lang/python/examples/howto/export-secret-keys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/examples/howto/export-secret-keys.py b/lang/python/examples/howto/export-secret-keys.py index f0fddc6d..f4e50085 100755 --- a/lang/python/examples/howto/export-secret-keys.py +++ b/lang/python/examples/howto/export-secret-keys.py @@ -74,9 +74,9 @@ elif homedir.startswith("~"): else: homedir = os.path.realpath(homedir) -if os.path.exists(homedir) is False: +if homedir is not None and os.path.exists(homedir) is False: homedir = None -else: +elif homedir is not None and os.path.exists(homedir) is True: if os.path.isdir(homedir) is False: homedir = None else: |