Skip to content

Commit 9fdb114

Browse files
committed
bugfix: fix config file load issue
1 parent b55e9a4 commit 9fdb114

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/scan_join_issues.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
def scan():
2222
# Load configuration first
23-
cfg = load_simple_yaml("config/join-config.yml")
23+
config_path = Path(__file__).parent.parent / "config" / "join-config.yml"
24+
cfg = load_simple_yaml(str(config_path))
2425

2526
# Get token from environment variable
2627
token = os.environ.get("GH_TOKEN", "").strip()

src/components/task_checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ def check():
214214
Main function to check tasks and send reminders based on configuration.
215215
"""
216216
# Load configuration
217-
cfg = load_simple_yaml("config/task-checker.yml")
217+
config_path = Path(__file__).parent.parent / "config" / "task-checker.yml"
218+
cfg = load_simple_yaml(str(config_path))
218219

219220
# Get token from environment variable
220221
token = os.environ.get("GH_TOKEN", "").strip()

0 commit comments

Comments
 (0)