diff --git a/src/coursebox/core/projects.py b/src/coursebox/core/projects.py index 33f2f44b0fba92010a70d7582d3fbba20af9c3b0..3c1f693545de3eb414a9b02333c301e651d2f0f9 100755 --- a/src/coursebox/core/projects.py +++ b/src/coursebox/core/projects.py @@ -704,7 +704,7 @@ def gather_instructor_sheets(info): # import shutil import subprocess - cmd = f'cd {os.path.basename(out)} && libreoffice --calc --headless --invisible --convert-to xlsx --outdir ../ {os.path.basename(out)}' + cmd = f'cd {os.path.dirname(out)} && libreoffice --calc --headless --invisible --convert-to xlsx --outdir ../ {os.path.basename(out)}' output = subprocess.run(cmd, capture_output=True, shell=True) time.sleep(3) od = os.path.dirname(os.path.dirname(out)) + "/" + os.path.basename(out)