From 4ffe36823009ab17b110831fd80d74fed911e270 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sat, 18 May 2013 04:35:45 +0000 Subject: [PATCH] Update directory shortcuts in utils to reflect path changes. --- src/_util.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/_util.py b/src/_util.py index acb9b70..178d959 100644 --- a/src/_util.py +++ b/src/_util.py @@ -52,14 +52,12 @@ except NameError: ## Directory shortcuts: -_here = os.getcwd() ## .../python-gnupg/src -_repo = _here.rsplit('src', 1)[0] ## .../python-gnupg -_test = os.path.join(os.path.join(_repo, 'tests'), - 'tmp') ## .../python-gnupg/tests/tmp -_user = os.environ.get('HOME') ## $HOME -_ugpg = os.path.join(_user, '.gnupg') ## $HOME/.gnupg -_conf = os.path.join(os.path.join(_user, '.config'), - 'python-gnupg') ## $HOME/.config/python-gnupg +_here = os.getcwd() +_test = os.path.join(os.path.join(_here, 'tests'), 'tmp') ## ./tests/tmp +_user = os.environ.get('HOME') ## $HOME +_ugpg = os.path.join(_user, '.gnupg') ## $HOME/.gnupg +_conf = os.path.join(os.path.join(_user, '.config'), 'python-gnupg') + ## $HOME/.config/python-gnupg ## Logger is disabled by default log = _logger.create_logger(0)