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
This commit is contained in:
Russell Johnson
2021-07-24 16:37:03 -05:00
parent a40812dfbf
commit 640eb6ace7

View File

@@ -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: