You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It would probably even better if specifying the context to a specific module other than Main would look for everything in the route folder of that project. But I am not an expert in Genie details, so might be that this is not an option
When starting Genie via
Genie.loadapp("path/to/my/project")
, it always assumes thatapp.jl
and probably other files too are located in the current directory and not inpath/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 callMyGenieApp.main()
, which necessarily needs to make sure that the package's app.jl files are used and those from the user's current directory.The text was updated successfully, but these errors were encountered: