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'