SPF-OST / pytrnsys

Package that provides functionality to run and process, plot and report TRNSYS simulations
https://pytrnsys.readthedocs.io
GNU General Public License v3.0
11 stars 8 forks source link

Relative paths in ASSIGN statements #154

Open zuckerruebe opened 1 year ago

zuckerruebe commented 1 year ago

As a user I'd like relative paths in ASSIGN statements to work.

While one can give relative paths to an ASSIGN statement already, depending on how the deck is run (think run.py/run.config) the relative paths break. So I think the solution would be to make them absolute (with some "guidance"/configuration by the user in the run.config file) when compiling the deck file.

P.S.: Trying to come up with a smart way of setting the relative paths in a project and passing them to TRNSYS as is is complicated by the fact that TRNSYS has its own way of dealing with relative paths: any path starting with a . (as in .\foo\bar.baz or ..\..\bum\ding.blang is interpreted relative to the TRNSYS installation directory, i.e. in many cases C:\TRNSYSxy (see C:\TRNSYS18\Documentation\06-TRNEdit.pdf).