From b9694826f7926219c7067e9b735a30c6c562f1d0 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Fri, 7 Mar 2025 16:48:37 +0100 Subject: [PATCH] Minor bug --- src/coursebox/core/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coursebox/core/projects.py b/src/coursebox/core/projects.py index 33f2f44..3c1f693 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) -- GitLab