Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Is it possible to use relative references in .osw?

asked 2018-10-27 22:45:49 -0600

TomB gravatar image

Is it possible to use relative references in an openstudio workflow file (.osw) ? i.e

"file_path" : "./measures/my_measure.rb"

rather than absolute path to each resource, i.e.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-28 08:44:16 -0600

Yes. Click on the OSW JSON Schema link from the CLI documentation and you'll see this description:

"file_paths": { "description": "A set of ordered directories relative to root_directory to search for required files and libraries", "type": "array", "items": { "description": "A path relative to the root_dir which should be searched for support files and folders", "type": "string" } },

And then the definition of the root directory:

"root": { "description": "Path to the root directory against which relative paths are evaluated. If root is empty, the directory containing the osw is used.", "type": "string" },
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower


Asked: 2018-10-27 22:45:49 -0600

Seen: 64 times

Last updated: Oct 28 '18