diff --git a/runtime/lib/runtime.rb b/runtime/lib/runtime.rb index 736d8c1..ee96c2c 100644 --- a/runtime/lib/runtime.rb +++ b/runtime/lib/runtime.rb @@ -33,10 +33,13 @@ module Runtime # # @return [Array] Default runtime paths. def default_paths - [ - File.expand_path("~/.jes"), - File.expand_path("../../runtime", $0), - ] + paths = [] + user_path = File.expand_path("~/.jes") + if File.directory?(user_path) + paths << user_path + end + paths << File.expand_path("../../runtime", $0) + paths end # Find a runtime file within a single runtime path.