(path, search_paths)
| 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 |