diff --git a/src/coursebox/material/documentation.py b/src/coursebox/material/documentation.py index 2a04e8ba999b332942897e269575ff4433c8cee8..cc09ffe2c633a1f71f28cc00c047072543380b2d 100755 --- a/src/coursebox/material/documentation.py +++ b/src/coursebox/material/documentation.py @@ -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):