Skip to content

Get folder path relative to the compiled exe #42

@Sukhoverkhaya

Description

@Sukhoverkhaya

Hello!

I'm trying to get my compiled app to use some files from a folder that I put next to the exe file after compilation. So I use something like const MY_PATH = @path joinpath(pwd(), "settings/my_file.txt") where settings is the folder next to the exe. But this doesn't work and on other machines it creates a path to folder with artifacts and dlls.

Can I use this macro to get the folder path relative to the compiled exe?

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