[Osgeo4w-trac] Re: [osgeo4w] #208: OSGeo4w shell: Environment not set correctly to use python with qgis bindings

OSGeo4W trac_osgeo4w at osgeo.org
Thu Jan 27 09:17:10 EST 2011


#208: OSGeo4w shell: Environment not set correctly to use python with qgis
bindings
--------------------------------------+-------------------------------------
Reporter:  milovanderlinden           |        Owner:  osgeo4w-dev@…              
    Type:  defect                     |       Status:  closed                     
Priority:  major                      |    Component:  Installer                  
 Version:                             |   Resolution:  worksforme                 
Keywords:  install shell qgis python  |  
--------------------------------------+-------------------------------------
Changes (by jef):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Replying to [comment:1 milovanderlinden]:
 > Solution I took:
 >
 > 1. Add a qgis.bat file in the directory: %OSGEO4W_ROOT%\etc\ini
 >
 > 2. Put this as content in the file:
 >
 > SET PYTHONPATH=%OSGEO4W_ROOT%\apps\qgis\python
 > PATH=C:\OSGeo4W\apps\qgis\bin;%PATH%

 A better option would be to create a batch file like {{{qgis.bat}}} to
 start the application that is using {{{qgis.core}}}.   Adding a
 {{{qgis.bat}}} to {{{etc/ini}}} might interfere with install of multiple
 qgis versions.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/208#comment:2>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.


More information about the Osgeo4w-trac mailing list