Merge patch 1.5.5 (#955)

* Remove os.path.commonpath call (Issue #954)
* Bump version and update changelog and release notes
This commit is contained in:
Veronica Berglyd Olsen
2022-01-05 16:24:34 +01:00
committed by GitHub
parent 00b3c3e9d2
commit c1c6a370a5
4 changed files with 32 additions and 10 deletions
+1 -1
View File
@@ -827,7 +827,7 @@ class NWProject():
), nwAlert.ERROR, exception=exc)
return False
if os.path.commonpath([self.projPath, baseDir]) == self.projPath:
if baseDir and baseDir.startswith(self.projPath):
self.theParent.makeAlert(self.tr(
"Cannot backup project because the backup path is within the "
"project folder to be backed up. Please choose a different "