Entry points should always be run with the current directory being the project root

Bug #524352 reported by Michal Kwiatkowski
8
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

Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fixed in trunk r321.

Changed in pythoscope:
assignee: nobody → Michal Kwiatkowski (ruby)
status: Confirmed → Fix Committed
Changed in pythoscope:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.