[Osgeo4w-trac] Re: [osgeo4w] #282: python path getting overwritten
OSGeo4W
trac_osgeo4w at osgeo.org
Sat Mar 31 03:15:18 EDT 2012
#282: python path getting overwritten
--------------------+-------------------------------------------------------
Reporter: lpinner | Owner: maphew
Type: defect | Status: assigned
Priority: minor | Component: Package
Version: | Keywords: python
--------------------+-------------------------------------------------------
Comment(by maphew):
This pattern is successful, after replacing the call to `findstr` in
`addpath` with an absolute path (`%windir%\system32\findstr.exe`):
{{{
set _save=%path%
set path=%pythonpath%
set _add=%OSGEO4W_ROOT%\apps\orfeotoolbox\python
call addpath _add
set path=%_save%
set _save=
set _add=
}}}
Wordy though. I'm tempted to try and re-work addpath to allow a parameter
of variable-name or raw string.
In any case the python package doesn't set PYTHONPATH, only PYTHONHOME, so
the only thing I/we can do is chart out a course for package maintainers
to follow.
--
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/282#comment:6>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list