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

updates

parent 54224851
Branches
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup( setuptools.setup(
name="coursebox", name="coursebox",
version="0.1.20.5", version="0.1.20.6",
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",
......
...@@ -33,21 +33,21 @@ def setup_student_files(run_files=True, ...@@ -33,21 +33,21 @@ def setup_student_files(run_files=True,
from coursebox.core.info import class_information from coursebox.core.info import class_information
# info = class_information() # info = class_information()
from coursebox.core.info import core_conf from coursebox.core.info import core_conf
<<<<<<< HEAD # <<<<<<< HEAD
# if 'package' not in core_conf: # if 'package' not in core_conf:
if len(core_conf['projects_all']) > 0: if len(core_conf['projects_all']) > 0:
PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0] PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0]
else: else:
PACKAGE = [w for w in core_conf['weeks_all'].values() if 'module_public' in w][0]['module_public'].split(".")[0] PACKAGE = [w for w in core_conf['weeks_all'].values() if 'module_public' in w][0]['module_public'].split(".")[0]
======= # =======
try: # try:
if len(core_conf['projects_all']) > 0: # if len(core_conf['projects_all']) > 0:
PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0] # PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0]
else: # else:
PACKAGE = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0] # PACKAGE = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0]
except Exception as e: # except Exception as e:
PACKAGE = core_conf['package'] # PACKAGE = core_conf['package']
>>>>>>> 5f0cf05ea2c51749713d10331847fbe062613bab # >>>>>>> 5f0cf05ea2c51749713d10331847fbe062613bab
if censor_files: 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." 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.
Please register or to comment