marxanweb / general

Issues tracker, installers, registry, test data and example developer apps for Marxan Web
European Union Public License 1.2
2 stars 2 forks source link

importProject error when the project name has spaces at the end #283

Closed andrewcottam closed 3 years ago

andrewcottam commented 3 years ago

File "/home/ubuntu/marxan-server/marxan-server.py", line 1362, in _readFileUnicode f = io.open(filename, mode="r", encoding="utf-8") FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/marxan-server/users/Olivia/Micronesia Project 1 /input.dat'

andrewcottam commented 3 years ago

This is caused because the _setFolderPaths method uses the 'project' argument to set the project folder path and it will have spaces in.