Skip to content
Snippets Groups Projects
Commit bb95660a authored by Jack Nagel's avatar Jack Nagel
Browse files

Use File.expand_path

parent b168361e
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ class Formulary
# If name was a path or mapped to a cached formula
f = FromPathLoader.new(name_or_path)
elsif name_or_path =~ /\.rb$/
f = FromPathLoader.new("./#{name_or_path}")
f = FromPathLoader.new(File.expand_path(name_or_path))
else
f = StandardLoader.new(name_or_path)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment