From a3596fca6546c53143bdec32378a464587ab568d Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Sat, 5 Aug 2023 14:12:21 +0200 Subject: [PATCH] Fixes to paths --- setup.py | 2 +- src/coursebox.egg-info/PKG-INFO | 2 +- src/coursebox/core/info_paths.py | 4 +++- src/coursebox/student_files/student_files.py | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 854990f..adea4d6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ with open("README.md", "r", encoding="utf-8") as fh: # beamer-slider setuptools.setup( name="coursebox", - version="0.1.18.5", + version="0.1.18.6", 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 5fd3021..b2d8dc6 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.18.5 +Version: 0.1.18.6 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/core/info_paths.py b/src/coursebox/core/info_paths.py index 2bd4735..22714ab 100644 --- a/src/coursebox/core/info_paths.py +++ b/src/coursebox/core/info_paths.py @@ -56,7 +56,7 @@ def get_paths(): 'homepage_template': "%s/WEB/index_partial.html"%root_02450public, 'homepage_out': "%s/WEB/%sindex.html"%(root_02450public, sCE), 'pdf_out': "%s/%spdf_out"%(root_02450public, sCE), - 'instructor': root_02450public + "/Exercises", + 'exercises': root_02450public + "/Exercises", # this does not seem correct. 'shared_latex_compilation_dir': root_02450public + "/Exercises/LatexCompilationDir/Latex", 'book': root_02450public + "/MLBOOK/Latex", 'lectures': root_02450public + "/Lectures", @@ -66,6 +66,8 @@ def get_paths(): 'electronic_exam_handin_dir': semester_path + "/exam/electronic_handin", 'exam_results_template.xlsx': root_02450private +"/Exam/%s_results_TEMPLATE.xlsx"%num, 'exam_instructions': root_02450public + "/ExamInstructions", + 'docs': root_02450public +"/src/docs", + 'src': root_02450public + "/src", } if os.path.exists(os.path.dirname(paths['instructor_project_evaluations'])): if not os.path.isdir(paths['instructor_project_evaluations']): diff --git a/src/coursebox/student_files/student_files.py b/src/coursebox/student_files/student_files.py index fe14b08..20ea4a0 100644 --- a/src/coursebox/student_files/student_files.py +++ b/src/coursebox/student_files/student_files.py @@ -52,6 +52,9 @@ def setup_student_files(run_files=True, init_dest = students_irlc_tools+"/__init__.py" shutil.copy(public_irlc_tools + "/__init__.py", init_dest) + if os.path.isfile(public_irlc_tools + "/../.coveragerc"): + shutil.copy(public_irlc_tools + "/../.coveragerc", students_irlc_tools+ "/../.coveragerc") + # assert False censor_file(init_dest) # Check for exclusion mask. -- GitLab