Use APPDATA for HOME equivalent

This commit is contained in:
NIIBE Yutaka
2013-01-21 12:09:33 +09:00
parent 6b6913c676
commit 8c91d2ef2e

View File

@@ -7,6 +7,8 @@ class gpg_agent(object):
def __init__(self):
if IS_WINDOWS:
home = os.getenv("HOME")
if not home:
home = os.getenv("APPDATA")
comm_port = os.path.join(home, "gnupg", "S.gpg-agent")
#
f = open(comm_port, "rb", 0)