Skip to content

Commit fc1945a

Browse files
committed
Expand ~/.iex before using it
1 parent 5c0ddbb commit fc1945a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iex/lib/iex.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ defmodule IEx do
241241
242242
# Locates and loads an .iex file from one of predefined locations
243243
defp load_dot_iex(config) do
244-
path = Enum.find [".iex", "~/.iex"], File.regular?(&1)
244+
path = Enum.find [".iex", "~/.iex"], fn path -> File.regular?(Path.expand(path)) end
245245
if nil?(path) do
246246
config
247247
else

0 commit comments

Comments
 (0)