gergopokol / renate-od

RENATE Open Diagnostics
GNU Lesser General Public License v3.0
7 stars 3 forks source link

Ability to handle relative path given by the user script. #229

Closed Balazs-Peter closed 2 years ago

Balazs-Peter commented 2 years ago

We might be able to do this with os.getcwd(), which returns the directory of the script ROD was called from, allowing to create an absolute path from the relative path provided.

asztalosors commented 2 years ago

Line 23 of accessdata should be appended by an additional elif, where os.getcwd() + path is checked where it exists. If so: