Using forward slashes when storing file paths in preferences

This commit is contained in:
Yorik van Havre 2020-06-09 12:31:16 +02:00 committed by GitHub
parent e61b5a385c
commit 97796503df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')