Bug report #12691
Path names with ' and " give problems when saving projects
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | - | ||
Category: | - | ||
Affected QGIS version: | 2.8.1 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 20797 |
Description
When saving a project in a folder containing an ' the following error is given
`
An error occured during execution of following code:
sys.path.remove('/home/christian/Work/InaSAFE/people_in_buildings'); sys.path.append('/home/christian/Work/InaSAFE/people_in_buildings/Charlotte's_run')
File "", line 1
sys.path.remove('/home/christian/Work/InaSAFE/people_in_buildings'); sys.path.append('/home/christian/Work/InaSAFE/people_in_buildings/Charlotte's_run')
^
SyntaxError: invalid syntax
`
When the path contains a "
`
An error occured during execution of following code:
sys.path.remove('/home/christian/Work/InaSAFE/people_in_buildings'); sys.path.append('/home/christian/Work/InaSAFE/people_in_buildings/Charlotte"s_run')
Traceback (most recent call last):
File "", line 1, in
ValueError: list.remove(x): x not in list
`
`
Associated revisions
handle projects path with apostrophe (fixes #12691)
handle projects path with apostrophe (fixes #12691)
(cherry picked from commit b49b49232a598ac22b60be398e5d8e125b53a3d6)
History
#1 Updated by Jürgen Fischer over 9 years ago
- Status changed from Open to Closed
Fixed in changeset b49b49232a598ac22b60be398e5d8e125b53a3d6.