Navigation Menu

Skip to content

Commit

Permalink
mrb: check whether load target is file
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 14, 2015
1 parent d8bc605 commit 723b420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mrb/scripts/require.rb
Expand Up @@ -49,7 +49,7 @@ def load_once_absolete_path(path)
return false if $".include?(path)
return false if @@loading_paths.key?(path)

return nil unless File.exist?(path)
return nil unless File.file?(path)

@@loading_paths[path] = true
load(path)
Expand Down

0 comments on commit 723b420

Please sign in to comment.