Entry points should always be run with the current directory being the project root
Bug #524352 reported by
Michal Kwiatkowski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pythoscope |
Fix Released
|
Medium
|
Michal Kwiatkowski |
Bug Description
Right now the project path is inserted into PYTHONPATH so the entry points imports work correctly. However, this is not enough for entry points and code that uses data files. Filesystem operations (like opening a file) will be relative to the location pythoscope has been run from. This should be changed, so that for the time when entry point is run the current directory is the project's root directory.
Thanks to Pieter Van Dyck for reporting this bug.
Related branches
Changed in pythoscope: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in trunk r321.