Cast OUTPUT_PATH to Path object

This commit is contained in:
Kumi 2022-01-13 11:52:03 +01:00
parent df072454b2
commit 0c97d3a748

View file

@ -24,6 +24,7 @@ def main():
global SIGNAL_PATH, OUTPUT_PATH global SIGNAL_PATH, OUTPUT_PATH
logger.info("Moodle Export Worker starting") logger.info("Moodle Export Worker starting")
SIGNAL_PATH = Path(SIGNAL_PATH) SIGNAL_PATH = Path(SIGNAL_PATH)
OUTPUT_PATH = Path(OUTPUT_PATH)
if SIGNAL_PATH.exists(): if SIGNAL_PATH.exists():
if not SIGNAL_PATH.is_dir(): if not SIGNAL_PATH.is_dir():