I just tried to run a simulation in a subfolder of sumatra project (using absolute paths for the main file and the parameter file) , but my main script file could not find the parameter file anymore because it was written into the root of sumatra project folder. Running the same code in the root folder was successful.
Probably using a parameter_file_basename with absolute path fixes this problem, in fact:
- the file 20150810-120639.param is saved in the current folder (in my case, a subfolder)
records.py:153:
self.parameter_file = self.executable.write_parameters(self.parameters, parameter_file_basename)
I just tried to run a simulation in a subfolder of sumatra project (using absolute paths for the main file and the parameter file) , but my main script file could not find the parameter file anymore because it was written into the root of sumatra project folder. Running the same code in the root folder was successful.
Probably using a parameter_file_basename with absolute path fixes this problem, in fact:
sumatra generates a command with a relative path to the file .param
but then the command is executed in the project working directory: