summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-11 16:34:40 -0200
committerdrebs <drebs@leap.se>2012-12-11 16:34:40 -0200
commit2d4fc3ee887fd52ac06fdd6f99bdc4b445a79463 (patch)
tree465a1af9e61af53cf76d91e801c7b71cf600cd28
parent435728098255a8bdc89a9191d2b774a911fa59a0 (diff)
Fix gnupg prefix path.
-rw-r--r--__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py
index d07567b5..45034561 100644
--- a/__init__.py
+++ b/__init__.py
@@ -2,6 +2,7 @@
"""A U1DB implementation for using Object Stores as its persistence layer."""
+import os
import gnupg
class GPGWrapper():
@@ -10,7 +11,7 @@ class GPGWrapper():
replaced by a more general class used throughout the project.
"""
- GNUPG_HOME = "~/.config/leap/gnupg"
+ GNUPG_HOME = os.environ['HOME'] + "/.config/leap/gnupg"
GNUPG_BINARY = "/usr/bin/gpg" # this has to be changed based on OS
def __init__(self, gpghome=GNUPG_HOME, gpgbinary=GNUPG_BINARY):