Permalink
Browse files

__FILE__ is removed, use __DIR__ instead.

Though, I could have used __ENV__.dir per
elixir-lang/elixir#1945
  • Loading branch information...
seven1m committed Feb 2, 2014
1 parent a9c38ce commit ccea7133156122fe3506e7c3e3489a49b14555a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 03-input-output.exs
View
@@ -25,7 +25,7 @@ defmodule CowInterrogator do
end
def cow_art do
- path = Path.expand("../support/cow.txt", __FILE__)
+ path = Path.expand("support/cow.txt", __DIR__)
case File.read(path) do
{:ok, art} -> art
{:error, _} -> IO.puts "Error: cow.txt file not found"; System.halt(1)

0 comments on commit ccea713

Please sign in to comment.