cmds.projects: Two fixes to Python search path generation #49
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/fix/20260722-cmds-projects-fix-generated-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR introduces two fixes to the way two Python search paths are generated in the
cmd.projectsmodule.cmds.projects.CmdCreateFile: Add self to extra_paths
pyrightconfig.jsonas generated byCmdCreateFile, doesn't contain the repository's own Python source location in "extra_paths", fix that.cmds.projects.CmdPythonpath: Reverse
PYTHONPATHCmdPythonpath, AKA pythonpath, prints a
PYTHONPATHwhich runs from root first to dependency leaves last. This works now but doesn't give local overrides the advantage it should. Fix that.cmds.projects: Fix generated pathsto cmds.projects: Two fixes to Python search path generation