lib/openstudio-standards/utilities/template_measure/resources/BTAPMeasureHelper.rb in openstudio-standards-0.6.3 vs lib/openstudio-standards/utilities/template_measure/resources/BTAPMeasureHelper.rb in openstudio-standards-0.7.0.rc1

- old
+ new

@@ -295,10 +295,10 @@ end end # helper method to create necb archetype as a starting point for testing. def create_necb_protype_model(building_type, climate_zone, epw_file, template) - osm_directory = "#{Dir.pwd}/output/#{building_type}-#{template}-#{climate_zone}-#{epw_file}" + osm_directory = "#{__dir__}/output/#{building_type}-#{template}-#{climate_zone}-#{epw_file}" FileUtils.mkdir_p(osm_directory) # Set building location from epw file weather_file_path = OpenstudioStandards::Weather.get_standards_weather_file_path(epw_file) OpenstudioStandards::Weather.model_set_building_location(model, weather_file_path: weather_file_path)