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 ENV LEKTOR_PROJECT alternative, as described in https://www.getlektor.com/docs/cli/ seems to work (I would have thought that they should both function, at the discover method, in the same way).
File: https://github.com/lektor/lektor-website/blob/master/content/docs/api/project/discover/contents.lr
It seems that if the path to the Lektor project file is set but using the
--projectargument,Project.discover()(used for packages) is been set to "None", yet using the ENVLEKTOR_PROJECTalternative, as described in https://www.getlektor.com/docs/cli/ seems to work (I would have thought that they should both function, at thediscovermethod, in the same way).File: https://github.com/lektor/lektor-website/blob/master/content/docs/api/project/discover/contents.lr