Placing the segments directory in a module attribute resolves its location at compile time.
|
@segments_dir Path.join(:code.priv_dir(@app_name), "/segments") |
This results in a runtime error when using an Elixir release, since this directory exists at a different path for the release. Simply allowing
Path.join(:code.priv_dir(@app_name), "/segments")
to be executed at runtime fixes the issue. Happy to submit a pull request that fixes this, if needed.
Thanks for the wonderful library!
Placing the segments directory in a module attribute resolves its location at compile time.
unicode_string/lib/unicode/segment.ex
Line 287 in 419ca88
This results in a runtime error when using an Elixir release, since this directory exists at a different path for the release. Simply allowing
to be executed at runtime fixes the issue. Happy to submit a pull request that fixes this, if needed.
Thanks for the wonderful library!