From 5081810a96d2c97ef37da6970d38fc27f4ec99b7 Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 16 Nov 2020 19:47:30 -0500 Subject: [PATCH] file_manager: normalize the path for the metadata script Signed-off-by: Eric Callahan --- moonraker/plugins/file_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/plugins/file_manager.py b/moonraker/plugins/file_manager.py index 46556de..ffe4dd9 100644 --- a/moonraker/plugins/file_manager.py +++ b/moonraker/plugins/file_manager.py @@ -15,8 +15,8 @@ from tornado.locks import Event VALID_GCODE_EXTS = ['.gcode', '.g', '.gco'] FULL_ACCESS_ROOTS = ["gcodes", "config"] -METADATA_SCRIPT = os.path.join( - os.path.dirname(__file__), "../../scripts/extract_metadata.py") +METADATA_SCRIPT = os.path.normpath(os.path.join( + os.path.dirname(__file__), "../../scripts/extract_metadata.py")) class FileManager: def __init__(self, config):