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

fixed minor folder issue

parent de984265
Branches
Tags v0.3.1
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Use pipreqs.exe to get requirements list. # Use pipreqs.exe to get requirements list.
""" """
Windows> py -m build && twine upload dist/* Windows> py -m build && twine upload dist/*
Linux> python -m build && twine upload dist/* Linux> python -m build && python -m twine upload dist/*
""" """
...@@ -15,7 +15,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -15,7 +15,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
# beamer-slider # beamer-slider
setuptools.setup( setuptools.setup(
name="coursebox", name="coursebox",
version="0.1.18.3", version="0.1.18.5",
author="Tue Herlau", author="Tue Herlau",
author_email="tuhe@dtu.dk", author_email="tuhe@dtu.dk",
description="A course management system currently used at DTU", description="A course management system currently used at DTU",
......
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: coursebox Name: coursebox
Version: 0.1.18.3 Version: 0.1.18.5
Summary: A course management system currently used at DTU Summary: A course management system currently used at DTU
Home-page: https://lab.compute.dtu.dk/tuhe/coursebox Home-page: https://lab.compute.dtu.dk/tuhe/coursebox
Author: Tue Herlau Author: Tue Herlau
......
...@@ -97,7 +97,7 @@ def first_day_of_class(info): ...@@ -97,7 +97,7 @@ def first_day_of_class(info):
mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=13, minute=0) mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=13, minute=0)
# scroll to monday # scroll to monday
while mo_first.weekday() != 0: #strftime('%A') is not 'Monday': while mo_first.weekday() != 0: #strftime('%A') is not 'Monday':
mo_first += timedelta(days=1) mo_first -= timedelta(days=1)
# add 4 weeks to get into 13 week period # add 4 weeks to get into 13 week period
for _ in range(4): for _ in range(4):
mo_first += timedelta(days=7) mo_first += timedelta(days=7)
...@@ -270,16 +270,19 @@ def get_forum(paths): ...@@ -270,16 +270,19 @@ def get_forum(paths):
def class_information(verbose=False, def class_information(verbose=False,
update_with_core_conf=False, # Whether to include (module) level core-conf items. Nearly always yes, but core is likely to include classes that are not easily pickled. so when 0xxxxprivate is excluded, this should be False. update_with_core_conf=False, # Whether to include (module) level core-conf items. Nearly always yes, but core is likely to include classes that are not easily pickled. so when 0xxxxprivate is excluded, this should be False.
): ):
paths = get_paths() paths = get_paths()
# print("Coursebox> Config file is", paths['information.xlsx'])
if not os.path.isfile(paths['information.xlsx']): if not os.path.isfile(paths['information.xlsx']):
print("Tried loading", paths['information.xlsx']) # raise Exception()
print("Coursebox> Tried loading configuration file:", paths['information.xlsx'])
cf = _info_cache_file() cf = _info_cache_file()
print("Information configuration file not found. Loading from cache:", cf) print("Coursebox> Information configuration file not found. Loading from cache:", cf)
if not os.path.isfile(cf): if not os.path.isfile(cf):
raise Exception("No configuration found. Please set up configuration file at: " + paths['information.xlsx']) raise Exception("No configuration found. Please set up configuration file at: " + paths['information.xlsx'])
else: else:
with open(cf, 'rb') as f: with open(cf, 'rb') as f:
print("Loaded cached configuration from", cf) print("Coursebox> Loaded cached configuration from", cf)
info = pickle.load(f) info = pickle.load(f)
info = _update_with_core_conf(info) info = _update_with_core_conf(info)
return info return info
......
...@@ -87,7 +87,7 @@ def setup_student_files(run_files=True, ...@@ -87,7 +87,7 @@ def setup_student_files(run_files=True,
# 'lectures/chapter0pythonB', # 'lectures/chapter0pythonB',
# 'lectures/chapter1', # 'lectures/chapter1',
'lectures', 'lectures',
'workshop' # 'workshop'
] ]
import coursebox.core.info import coursebox.core.info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment