-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Placing the segments directory in a module attribute resolves its location at compile time.
unicode_string/lib/unicode/segment.ex
Line 287 in 419ca88
| @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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels