should avoid loading modules from working directory
Bug #72227 reported by
Forest Bond
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
High
|
Unassigned | ||
bzr (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
bzr tries to import e.g. logging, however, if in a directory where there exists a file logging.py, bzr will eventually fail if this module is not what it is expecting. bzr should disable importing from current directory, perhaps like this:
sys.path = sys.path[1:]
Or probably something more fool proof. You get the idea.
-Forest
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in bzr: | |
status: | Triaged → In Progress |
Changed in bzr: | |
status: | In Progress → Confirmed |
status: | In Progress → Confirmed |
To post a comment you must log in.
Good idea, thanks.
--
Martin