From 04de0334548b2d981701699ab2a3465f4f64bae1 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 20 Jun 2016 18:23:05 -0700 Subject: [PATCH] log: remove references to script directory This is wrong when log.py is present in ~/.local/lib/... or /usr/lib/... --- log.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/log.py b/log.py index a4b86dc..ec1054f 100644 --- a/log.py +++ b/log.py @@ -15,10 +15,7 @@ from .conf import conf, confname stdout_level = conf['logging'].get('stdout') or 'INFO' -# Set the logging directory to $CURDIR/log, creating it if it doesn't -# already exist -curdir = os.path.dirname(os.path.realpath(__file__)) -logdir = os.path.join(curdir, 'log') +logdir = os.path.join(os.getcwd(), 'log') os.makedirs(logdir, exist_ok=True) _format = '%(asctime)s [%(levelname)s] %(message)s'