OpenStudioApplication icon indicating copy to clipboard operation
OpenStudioApplication copied to clipboard

Can't access model companion directory from Runner/WorkflowJSON in Apply Measure Now

Open macumber opened this issue 7 years ago • 2 comments

Apply measure now uses a temp model and sandbox to protect the working model. However, we need a way to access files in the model's companion directory. Use cases are:

  • Write an html report to the reports directory
  • Write a csv file to the model's data dir
  • Read a file from the model's data dir

We need to make sure to revert all changes if the user cancels. Suggest that we initialize a temp model companion dir with all files, then merge that back on accept.

macumber avatar Apr 27 '18 15:04 macumber

@jmarrec FYI

macumber avatar Apr 27 '18 15:04 macumber

I think the issue title might be a bit misleading. The companion dir can be accessed (or should be accessible) via WorkflowJSON I think. The path to the original model dir cannot however.

jmarrec avatar Jun 10 '20 06:06 jmarrec