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

updates

parent b9694826
No related branches found
No related tags found
No related merge requests found
......@@ -395,22 +395,18 @@ def deploy_students_complete(verbose=False):
PROJECTS = list(core_conf['projects_all'].keys())
WEEKS = list(core_conf['weeks_all'].keys())
# from cp_box.material.student_files import setup_student_files
from coursebox.student_files.student_files import setup_student_files
studens_complete = paths['02450students'] + '_complete'
if os.path.isdir(studens_complete):
shutil.rmtree(paths['02450students'] + '_complete')
# PROJECTS = [int(os.path.basename(f)[len("project"):]) for f in
# glob.glob(f"{paths['02450public']}/src/cp/project*")]
# WEEKS = [int(os.path.basename(f)[len("ex"):]) for f in glob.glob(f"{paths['02450public']}/src/cp/ex*") if
# not os.path.basename(f) == 'exam']
# shutil.rmtree(paths['02450students'] + '_complete')
cut_files=False
# verbose=False
# cut_files = False # This deploy to students_complete.
setup_student_files(run_files=False, cut_files=cut_files, censor_files=False, setup_lectures=cut_files,
setup_student_files(run_files=False, cut_files=False, censor_files=False, setup_lectures=False,
week=WEEKS, projects=PROJECTS,
fix_shared_files=cut_files, verbose=verbose, include_docs=True)
fix_shared_files=False, verbose=verbose, include_docs=True)
# Copy stuff like requirements, environment files.
for f in glob.glob(f"{paths['02450students']}/*"):
if not os.path.isfile( ff := f"{studens_complete}/{os.path.basename(f)}") and not os.path.isdir(f):
shutil.copy(f, ff)
def fix_all_shared_files(paths=None, dosvg=False,compile_templates=True, verbose=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