Skip to content

Commit 4de1732

Browse files
committed
Convert log file path to dynamic absolute object
Fixes #22
1 parent 4d6a77c commit 4de1732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

namedtuple_maker/namedtuple_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from namedtuple_maker.namedtuple_utils import graceful_exit
4040

4141
# Constants
42-
LOG_FILE_PATH = path.curdir
42+
LOG_FILE_PATH = path.dirname(__file__)
4343
LOG_FILE_NAME = 'namedtuple-log.log'
4444
LOG_FILE = path.join(LOG_FILE_PATH, LOG_FILE_NAME)
4545
LOG_LEVEL_DEFAULT = 'CRITICAL'

0 commit comments

Comments
 (0)