From fd7cfcfa8e43cab130a53f64739bcdb40bf3c4a6 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Fri, 12 Aug 2022 10:54:09 +0200 Subject: [PATCH] fixed semester path --- setup.py | 2 +- src/coursebox/core/info_paths.py | 10 +++++----- src/coursebox/thtools_base.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 6527f99..81f9901 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh: # beamer-slider setuptools.setup( name="coursebox", - version="0.1.6", + version="0.1.7", author="Tue Herlau", author_email="tuhe@dtu.dk", description="A course management system currently used at DTU", diff --git a/src/coursebox/core/info_paths.py b/src/coursebox/core/info_paths.py index 6bfbcc7..8a0c02f 100644 --- a/src/coursebox/core/info_paths.py +++ b/src/coursebox/core/info_paths.py @@ -23,14 +23,14 @@ def get_paths(): root_02450private = root_02450private.replace("\\", "/") if not os.path.isdir(root_02450private): - root_02450private = root_02450public+'/pythontools/imlbox' - warn('pythontools/imlbox/core/info_paths.py: 02450private repo not found') + root_02450private = f'{root_02450public}/{num}private' + warn('Private repository not found at the expected location.') warn('Using mock info from resources folder at:') warn(root_02450private) # Tue: always overwrite semester path. - semester_path = root_02450private +"/resources/mock_semesters/" + semester_id() - else: - semester_path = root_02450private + "/semesters/" + semester_id() + # semester_path = root_02450private +"/resources/mock_semesters/" + semester_id() + # else: + semester_path = root_02450private + "/semesters/" + semester_id() if not os.path.isdir(semester_path): os.makedirs(semester_path) diff --git a/src/coursebox/thtools_base.py b/src/coursebox/thtools_base.py index 3b42df8..b04434e 100644 --- a/src/coursebox/thtools_base.py +++ b/src/coursebox/thtools_base.py @@ -9,7 +9,7 @@ def is_win(): return platform.uname()[0].startswith("Windows") -def is_compute(): +def is_compute():f return platform.uname()[1] == "linuxterm1" -- GitLab