Skip to content

Genie.loadapp ignores path argument in case of app.jl #733

@schlichtanders

Description

@schlichtanders

When starting Genie via Genie.loadapp("path/to/my/project"), it always assumes that app.jl and probably other files too are located in the current directory and not in path/to/my/project.

The underlying problem is that the path is not at all forwarded to the autoloader, which does not use paths, but relies on the current directory instead.

Background: It would be nice to have a Genie app MyGenieApp with main function, package it, and let others add the package and call MyGenieApp.main(), which necessarily needs to make sure that the package's app.jl files are used and those from the user's current directory.

Metadata

Metadata

Assignees

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