Skip to content

Commit f60affe

Browse files
committed
Removed deprecated __FILE__ calls
1 parent 637b3f0 commit f60affe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/ex_doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env elixir
2-
Code.prepend_path Path.expand("../../_build/shared/lib/ex_doc/ebin", __FILE__)
2+
Code.prepend_path Path.expand("../_build/shared/lib/ex_doc/ebin", __DIR__)
33
ExDoc.CLI.run(System.argv)

test/ex_doc/html_formatter_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ defmodule ExDoc.HTMLFormatterTest do
1616
end
1717

1818
defp output_dir do
19-
Path.expand("../../docs", __FILE__)
19+
Path.expand("../docs", __DIR__)
2020
end
2121

2222
defp beam_dir do
23-
Path.expand("../../tmp/ebin", __FILE__)
23+
Path.expand("../tmp/ebin", __DIR__)
2424
end
2525

2626
defp doc_config do

0 commit comments

Comments
 (0)