diff options
| author | Ben McGinnes <[email protected]> | 2018-09-26 23:57:50 +0000 | 
|---|---|---|
| committer | Ben McGinnes <[email protected]> | 2018-09-26 23:57:50 +0000 | 
| commit | 7c9f49a4991c1ccd0cb582875207b373d4fccf50 (patch) | |
| tree | fc9b4188360946d4d8d6ca54f92d0d238df7e437 /lang/python/examples/howto/send-key-to-keyserver.py | |
| parent | docs: a typographical two-step (diff) | |
| download | gpgme-7c9f49a4991c1ccd0cb582875207b373d4fccf50.tar.gz gpgme-7c9f49a4991c1ccd0cb582875207b373d4fccf50.zip  | |
examples: python bindings
* Fixed homedir specifying logic in several cases.
Diffstat (limited to 'lang/python/examples/howto/send-key-to-keyserver.py')
| -rwxr-xr-x | lang/python/examples/howto/send-key-to-keyserver.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/examples/howto/send-key-to-keyserver.py b/lang/python/examples/howto/send-key-to-keyserver.py index 3541b198..261c8b65 100755 --- a/lang/python/examples/howto/send-key-to-keyserver.py +++ b/lang/python/examples/howto/send-key-to-keyserver.py @@ -60,9 +60,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:  | 
