-
Notifications
You must be signed in to change notification settings - Fork 197
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
[internal] Schedule:File relative paths mod #5010
Conversation
…leFile::translatedFilePath() const`
7683af4
to
d64e7fb
Compare
openstudio::path ScheduleFile_Impl::translatedFilePath() const { | ||
if (translateFileWithRelativePath()) { | ||
return toPath(externalFile().fileName()); | ||
} | ||
openstudio::path filePath = externalFile().filePath(); | ||
if (!exists(filePath)) { | ||
LOG(Warn, "Cannot find file \"" << filePath << "\""); | ||
} else { | ||
// make the path correct for this system | ||
filePath = system_complete(filePath); | ||
} | ||
return filePath; | ||
} |
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.
👍
@@ -5111,7 +5111,9 @@ OS:Schedule:File, | |||
\key Yes | |||
\key No | |||
\default Yes | |||
A8; \field Translate File Name | |||
A8; \field Translate File With Relative Path |
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.
Yes, this name more clear.
\note "No" means the absolute path of the ExternalFile is resolved and translated to IDF. | ||
\note "Yes" means only the filename (relative) is translated |
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.
👍
Pull request overview
openstudio::path ScheduleFile::translatedFilePath() const
I'm building these changes, will hopefully report back soonish