python version mismatch

Bug #607902 reported by LeoRochael
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
labyrinth
Unknown
Unknown
labyrinth (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: labyrinth

The file at /usr/bin/labyrinth has a "#!" line with "/usr/bin/env python", which means it will use the default version of python installed. However, it goes on to insert on sys.path the path to the labyrinth package installed in a specific python version. This breaks labyrinth 0.4.0 on Karmic, where the specific python version is 2.5, which is not installed by default.

The attached patch replaces the static python directory insertion with one calculated from the import of the labyrinth python package. It will happen to be the same as the statically included directory if the python versions match.

The attached patch also removes an unnecessary exists() check, since os.path.isdir() implies os.path.exists()

Revision history for this message
LeoRochael (leorochael) wrote :
tags: added: patch
Revision history for this message
Leo Arias (elopio) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
http://code.google.com/p/labyrinth/issues/detail?id=149

tags: added: patch-forwarded-upstream
removed: patch
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.