From 97796503df0da13b274d31c325bcf7fd958e912e Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 9 Jun 2020 12:31:16 +0200 Subject: [PATCH] Using forward slashes when storing file paths in preferences --- PartsLibrary.FCMacro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PartsLibrary.FCMacro b/PartsLibrary.FCMacro index 3613c3e4..a8661b39 100755 --- a/PartsLibrary.FCMacro +++ b/PartsLibrary.FCMacro @@ -91,7 +91,7 @@ if s: else: folderDialog = QtGui.QFileDialog.getExistingDirectory(None,QtGui.QApplication.translate("PartsLibrary", "Location of your existing Parts library")) - param.SetString('destination',folderDialog) + param.SetString('destination',folderDialog.replace("\\","/")) # forward slashes apparently work on windows too LIBRARYPATH = param.GetString('destination')