Use sys.prefix instead of a fixed, possibly broken path with resources
Bug #1171739 reported by
Marco Giusti
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/
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.