update PYTHONPATH when running from source
Bug #1951258 reported by
Jelmer Vernooij
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Fix Released
|
High
|
Martin Packman |
Bug Description
After moving to main.rs, when brz is run from a source directory we no longer include the source directory on PYTHONPATH by default.
This is a little annoying, since it means you always have to manually add it.
We should update sys.path to start with the brz executable's directory when brz is run from a directory that contains a "breezy" subdirectory. Alternatively, maybe we can just load the breezy module and set sys.modules manually?
Related branches
lp:~jelmer/brz/auto-path
- Martin Packman: Approve
-
Diff: 66 lines (+30/-1)2 files modifiedCargo.toml (+1/-1)
breezy/main.rs (+29/-0)
Changed in brz: | |
milestone: | none → 4.0.0 |
Changed in brz: | |
status: | Triaged → Fix Released |
To post a comment you must log in.