From 0aafc87ed121ff5c452a924195d79378309fdd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 10 Oct 2021 15:45:24 +0200 Subject: [PATCH] fix importing of fallback course info file: use current file path to be independent of execution directory --- scripts/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.py b/scripts/config.py index 583d65f..0c5dd50 100644 --- a/scripts/config.py +++ b/scripts/config.py @@ -10,7 +10,7 @@ USERCALENDARID = 'primary' CURRENT_COURSE_SYMLINK = Path('~/current_course').expanduser() CURRENT_COURSE_ROOT = CURRENT_COURSE_SYMLINK.resolve() CURRENT_COURSE_WATCH_FILE = Path('/tmp/current_course').resolve() -ROOT = Path('~/Uni/semester-4').expanduser() +ROOT = Path('~/Uni/semester-5').expanduser() DATE_FORMAT = '%a %d %b %Y' LOCALE = "de_DE.utf8" COURSE_IGNORE_FILE = '.courseignore' @@ -22,7 +22,7 @@ DEFAULT_NEW_LECTURE_HEADER = r'\lecture[]{{{date}}}{{{title}}}' DEFAULT_NEW_LECTURE_TITLE = 'Untitled' DEFAULT_LECTURE_SEARCH_REGEX = r'lecture.*({\d*})?{(.*?)}{(.*)}' DEFAULT_IMPORT_INDENTATION = 4 -FALLBACK_COURSE_INFO_FILE = Path('fallback.yaml').resolve() +FALLBACK_COURSE_INFO_FILE = Path(__file__).parent.resolve() / 'fallback.yaml' TIMEZONE = pytz.timezone('CET') SCHEDULER_DELAY = 60 DEFAULT_LATEX_COUNTER_AUX_FILE_EXTENSION = '.cnt' \ No newline at end of file