MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / require_embedded

Method require_embedded

ruby/engine/embedded_help.rb:232–246  ·  view source on GitHub ↗
(path, search_paths)

Source from the content-addressed store, hash-verified

230 end
231
232 def require_embedded(path, search_paths)
233 search_paths = [] if not search_paths
234 search_paths.each do |p|
235 if p.to_s.chars.first == ':'
236 embedded_path = p + '/' + path
237 if $LOADED.include?(embedded_path)
238 return true
239 elsif EmbeddedScripting::hasFile(embedded_path)
240 require_embedded_absolute(embedded_path)
241 return true
242 end
243 end
244 end
245 return false
246 end
247
248 def require_embedded_absolute path
249 original_directory = Dir.pwd

Callers

nothing calls this directly

Calls 2

to_sMethod · 0.80
hasFileMethod · 0.80

Tested by

no test coverage detected