First time here? Check our help page!
2

Is it possible to use relative references in .osw?

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.

"file_path":"C\\simulations\\job\\measures\\my_measure.rb"
TomB's avatar
1.7k
TomB
asked 2018-10-27 22:45:49 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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" },
shorowit's avatar
11.8k
shorowit
answered 2018-10-28 08:44:16 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments