Skip to content

Resolve segments directory at runtime #4

@crkent

Description

@crkent

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions