example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/util.rb in urbanopt-cli-0.9.3 vs example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/util.rb in urbanopt-cli-0.10.0
- old
+ new
@@ -323,15 +323,15 @@
end
class FilePath
def self.check_path(path, relative_dir, name)
return if path.nil?
- return path if File.exist? path
+ return File.absolute_path(path) if File.exist? path
filepath = File.expand_path(File.join(relative_dir, path))
if not File.exist? filepath
fail "#{name} file path '#{path}' does not exist."
end
- return filepath
+ return File.absolute_path(filepath)
end
end