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

updates

parent 54224851
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="coursebox",
version="0.1.20.5",
version="0.1.20.6",
author="Tue Herlau",
author_email="tuhe@dtu.dk",
description="A course management system currently used at DTU",
......
......@@ -33,21 +33,21 @@ def setup_student_files(run_files=True,
from coursebox.core.info import class_information
# info = class_information()
from coursebox.core.info import core_conf
<<<<<<< HEAD
# <<<<<<< HEAD
# if 'package' not in core_conf:
if len(core_conf['projects_all']) > 0:
PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0]
else:
PACKAGE = [w for w in core_conf['weeks_all'].values() if 'module_public' in w][0]['module_public'].split(".")[0]
=======
try:
if len(core_conf['projects_all']) > 0:
PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0]
else:
PACKAGE = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0]
except Exception as e:
PACKAGE = core_conf['package']
>>>>>>> 5f0cf05ea2c51749713d10331847fbe062613bab
# =======
# try:
# if len(core_conf['projects_all']) > 0:
# PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0]
# else:
# PACKAGE = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0]
# except Exception as e:
# PACKAGE = core_conf['package']
# >>>>>>> 5f0cf05ea2c51749713d10331847fbe062613bab
if censor_files:
assert not run_files, "You cannot run files while you are censoring them -- your scripts will crash. Call with run_files=False."
......
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