Reusing code in elixir scripts (.exs)

You can use Code.require_file.

Welcome to Elixir Forum!

EDIT: Mix.install with a path should work but it would need to be a proper mix project with a mix.exs file with at very least a def project and a lib/ directory.