INSTALL_PREFIX read twice in __init__.py

Bug #296124 reported by John Millikin
4
Affects Status Importance Assigned to Milestone
Universal Applets
Fix Committed
Undecided
Unassigned

Bug Description

In src/lib/univeral-applets/__init__.py, the INSTALL_PREFIX is read twice. The second is superfluous, and causes errors if there is no /etc/universal-applets/prefix file.

Related branches

Revision history for this message
Peter Ward (flowblok) wrote :

I think I noticed this earlier, when working out how to set up my development environment.
Is it plausible to replace the /etc/universal-applets/prefix file with a bit of code like:

import sys
import os
prefix = os.path.join(os.path.abspath(sys.argv[0]), '..')

As far as I can see, this would make things a lot easier to manage, since you could then have mutliple UA installs without any issues. (e.g.: install into your home folder for development, and onto /usr/local/ for other users)

Revision history for this message
Peter Ward (flowblok) wrote :
Peter Ward (flowblok)
Changed in universal-applets:
status: New → Confirmed
Revision history for this message
Peter Ward (flowblok) wrote :

Fixed in bzr revision 603 - unless this patch causes stuff to break, this bug can be closed.

Changed in universal-applets:
status: Confirmed → Fix Committed
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.