diff --git a/setup.py b/setup.py index 6527f99fdd580b44338db239157dfdeead83f240..81f9901f60b281c96b3b90c81d9eeffb0e619985 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 6bfbcc7b5f94fa597c8f78079568d2aabb7b9f12..8a0c02fcc9dad55fe47865ddf95eb293d3a7625f 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 3b42df839167c393b00b998feb3d3bb84c579250..b04434e2346c92e33939efd49f0dadcb24a5f304 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"