diff --git a/setup.py b/setup.py index 3d3630f9f134813b642ed9c0fcdd2b8893240f5e..d6963900c14ad90ef56d34055dacd1c6c5b34b45 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="coursebox", - version="0.1.20.1", + version="0.1.20.3", author="Tue Herlau", author_email="tuhe@dtu.dk", description="A course management system currently used at DTU", diff --git a/src/coursebox.egg-info/PKG-INFO b/src/coursebox.egg-info/PKG-INFO index 3c9d50a82d90df2619ff536bf8bdfe6871843bec..d4126880edbdfa7ccff4598eb099b6509108ead4 100644 --- a/src/coursebox.egg-info/PKG-INFO +++ b/src/coursebox.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: coursebox -Version: 0.1.20.1 +Version: 0.1.20.3 Summary: A course management system currently used at DTU Home-page: https://lab.compute.dtu.dk/tuhe/coursebox Author: Tue Herlau diff --git a/src/coursebox/student_files/student_files.py b/src/coursebox/student_files/student_files.py index 5d9c782c431761293905df0c9c03031515fa926f..2d534724e970b08737ceeb9747aefd0a5223c107 100644 --- a/src/coursebox/student_files/student_files.py +++ b/src/coursebox/student_files/student_files.py @@ -23,18 +23,21 @@ def setup_student_files(run_files=True, midterms=None, # Can be a list: [0, 1] include_docs=False, # Include the documentation directory, i.e. 02465public/src/docs. convert_svg=True, # Whether to convert SVG file when deploying. Leave to true, unless we are doing CI/CD in which case inkscape may not be installed. - package="cp", + # package="cp", # fix_shared_files_func=None, ): if midterms is None: midterms = [] from coursebox.core import info_paths - # from coursebox.core.info import class_information + from coursebox.core.info import class_information # info = class_information() from coursebox.core.info import core_conf - PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0] - + # 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 = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0] 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." @@ -158,8 +161,6 @@ def setup_student_files(run_files=True, if len(hws) > 0: info = class_information(verbose=verbose) - # print("references") # Bad idea because of the very long output. - # print(info['references']['commands']) else: info = None for hw in hws: