From 640eb6ace744409f26aa44f6a777e21178b82950 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 24 Jul 2021 16:37:03 -0500 Subject: [PATCH] Path: Fix multi-OS path issue. Not all operating systems use the same path scheme - the slash direction. The issue fixed with this commit exists in other parts of the Path workbench --- src/Mod/Path/PathScripts/PathJobDlg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathJobDlg.py b/src/Mod/Path/PathScripts/PathJobDlg.py index c7e98edda5..047c92280c 100644 --- a/src/Mod/Path/PathScripts/PathJobDlg.py +++ b/src/Mod/Path/PathScripts/PathJobDlg.py @@ -213,7 +213,8 @@ class JobCreate: def setupTemplate(self): templateFiles = [] for path in PathPreferences.searchPaths(): - templateFiles.extend(self.templateFilesIn(path)) + cleanPaths = [f.replace("\\", "/") for f in self.templateFilesIn(path)] # Standardize slashes used accross os platforms + templateFiles.extend(cleanPaths) template = {} for tFile in templateFiles: