Skip to content

Commit 6b5eb48

Browse files
committed
Use a robust path reference to the file config
1 parent d1f3215 commit 6b5eb48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ulc_mm_package/QtGUI/oracle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ def __init__(self):
128128
mkdir(log_dir)
129129

130130
# Setup logger
131+
logger_config_path = Path(__file__).resolve().parent.parent / "logger.config"
131132
fileConfig(
132-
fname="../logger.config",
133+
fname=str(logger_config_path),
133134
defaults={
134135
"filename": path.join(log_dir, f"{self.datetime_str}.log"),
135136
"fileHandlerLevel": "DEBUG" if VERBOSE else "INFO",

0 commit comments

Comments
 (0)