#1634: Searching for binaries in PATH environment variable
------------------------------+---------------------------------------------
Id: 1634 | Status: new
Component: PortalTransforms | Modified: Thu May 4 11:02:46 2006
Severity: enhancement | Milestone: CPS 3.4.1
Priority: P1 | Version: TRUNK
Owner: trac | Reporter: FabriceRobin at bbs-one.fr
------------------------------+---------------------------------------------
I suggest to enhance PortalTransforms in order to search for binaries in
the PATH variable instead of the static list '/bin', '/usr/bin' et
'/usr/local/bin'.
The file libtransforms/utils.py must be modified from:
''bin_search_path = [
'' '/bin',
'' '/usr/bin',
'' '/usr/local/bin',
'' ]''
to:
''import os''
''bin_search_path = os.environ['PATH'].split(':')''
Regards,
Fabrice Robin
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1634>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
Hosting: Nuxeo: Zope service provider