Skip to content
Snippets Groups Projects
Commit fd7cfcfa authored by tuhe's avatar tuhe
Browse files

fixed semester path

parent c2e05a9e
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
......@@ -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)
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment