-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Project.discover() not set when Lektor loaded with --project ARG #291
Comments
Is this a documentation bug, or a real bug? |
Hm, I'm not actually sure. I definitely would expect the environment variable and the arg to have the same behavior (and probably give precedence to the arg so you can override it even when env is set). For the discover method I'm not as sure. In order to be useful I guess we should change the docs and implementation of |
I think the OP may be a little unclearly worded, but I think I get the confusion.
If the I think https://www.getlektor.com/docs/cli/ should be amended to mention |
I struggle to think of when it would be a good idea to modify the project path from a plugin, but I don't see anything preventing it. A plugin should be able to call |
It seems that if the path to the Lektor project file is set but using the
--project
argument,Project.discover()
(used for packages) is been set to "None", yet using the ENVLEKTOR_PROJECT
alternative, as described in https://www.getlektor.com/docs/cli/ seems to work (I would have thought that they should both function, at thediscover
method, in the same way).File: https://github.com/lektor/lektor-website/blob/master/content/docs/api/project/discover/contents.lr
The text was updated successfully, but these errors were encountered: