Use sys.prefix instead of a fixed, possibly broken path with resources

Bug #1171739 reported by Marco Giusti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Virtualbricks
Fix Released
Undecided
Marco Giusti

Bug Description

Actually the resources are searched in a limited, fixed set of paths: "/usr/share/pixmaps/" and "/usr/local/share/pixmaps/". As per distutils documentation, the data_files is interpreted as following:

Each (directory, files) pair in the sequence specifies the installation directory and the files to install there. If directory is a relative path, it is interpreted relative to the installation prefix (Python’s sys.prefix for pure-Python packages, sys.exec_prefix for packages that contain extension modules). Each file name in files is interpreted relative to the setup.py script at the top of the package source distribution.

so using sys.prefix should be enough.

Related branches

Changed in virtualbrick:
assignee: nobody → mg (marco-giusti)
Changed in virtualbrick:
milestone: none → 1.0
status: New → Fix Committed
Changed in virtualbrick:
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.