hf-actions commited on
Commit
74ba32b
·
1 Parent(s): 90c5f55

fix: add parent dir to sys.path in run_daily.py for module imports

Browse files
Files changed (1) hide show
  1. scripts/run_daily.py +4 -0
scripts/run_daily.py CHANGED
@@ -1,7 +1,11 @@
1
  import os
 
2
  import logging
3
  from dotenv import load_dotenv
4
 
 
 
 
5
  load_dotenv()
6
  logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
7
  logger = logging.getLogger(__name__)
 
1
  import os
2
+ import sys
3
  import logging
4
  from dotenv import load_dotenv
5
 
6
+ # Add parent directory to path so we can import modules from root
7
+ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
8
+
9
  load_dotenv()
10
  logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
11
  logger = logging.getLogger(__name__)