[Osgeo4w-trac] Re: [osgeo4w] #282: python path getting overwritten
OSGeo4W
trac_osgeo4w at osgeo.org
Fri Mar 30 10:37:04 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):
Thanks Luke. That lead, eventually, to a complete treatment here:
http://stackoverflow.com/questions/141344/how-to-check-if-directory-
exists-in-path, along with a very good description of what makes this a
difficult issue in the first place.
perhaps something like this (untested, about to run out of battery power)
{{{
:pypath
set _path=%path%
set PATH=%PYTHONPATH%
call b:\bin\addpath %OSGEO4W_ROOT%\apps\Python27
set PYTHONPATH=%PATH%
set PATH=%_path%
goto :eof
}}}
--
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/282#comment:5>
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