Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • devel
  • main
2 results

Target

Select target project
  • tuhe/coursebox
1 result
Select Git revision
  • devel
  • main
2 results
Show changes

Commits on Source 3

  • tuhe's avatar
    minor · 0a9badc2
    tuhe authored
    0a9badc2
  • tuhe's avatar
    updtes · 54224851
    tuhe authored
    54224851
  • tuhe's avatar
    updates · e708411e
    tuhe authored
    e708411e
......@@ -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",
......
Metadata-Version: 2.1
Name: coursebox
Version: 0.1.20.3
Version: 0.1.20.4
Summary: A course management system currently used at DTU
Home-page: https://lab.compute.dtu.dk/tuhe/coursebox
Author: Tue Herlau
......
......@@ -33,13 +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
try:
# <<<<<<< 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 = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0]
except Exception as e:
PACKAGE = core_conf['package']
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
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."
......