I've seen this pattern a lot:
`Path.expand('./some_file.ex', Path.dirname(__ENV__.file))`
which returns the path relative to the location of the file it is specified
in.
I wonder if we can package this up in a convenient helper method, something
like:
`Path.relative_to_file('./some_file.ex')` or
`Path.relative_to_current_file('./some_file.ex')`
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/c4b963b4-5c08-4b42-9fac-f7268c1d976c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.