-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #262 #263 - Handle Path Arguments (QFileDialog) #761
Conversation
here is my test measure
|
@macumber ping |
} | ||
|
||
if (!selectedPath.isEmpty()) { | ||
lineEdit->setText(selectedPath); // QFileInfo(selectedPath).absoluteFilePath() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will selectedPath always be absolute? What if the user wants it to be relative? What would it be relative to? Maybe isRelative
could be an attribute and would be assumed to be relative to the run directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmarrec do you think the guidance should be that file path arguments are always absolute, used for reading/writing files outside of the workflow. If there are files written by the measure, read by other measures, as part of the workflow those would just be found by file name (a string argument) using WorkflowJSON::findFile
which searches the workflow paths?
This is cool @jmarrec, I added some comments, maybe it is worth adding some new attributes if you are already updating the SDK? |
@macumber until #5273 is addressed, I'd say we just merge this. Does that work for you? |
This looks good to me @jmarrec, I'm fine if you want to merge this now before NREL/OpenStudio#5273 is complete |
The OS SDK / BCL-gem implementation of the path arguments is incomplete and confusing, and they don't handle the makePathArgument arguments:
isRead
. what does that even mean? Is this assuming that this is for reading meaning it must be 1) a file (not a directory) and 2) it must exist?)extension