PathHelper

PathHelper.relative_file(filename) allows you to access a file relative to the file calling it, irrespective of the working path it is invoked from. Useful for scripts that are symlinked to /usr/bin or similar.

Installation

If available in Hex, the package can be installed by adding path_helper to your list of dependencies in mix.exs:

def deps do
  [
    {:path_helper, "~> 0.1.2"}
  ]
end