[QGIS-trac] Re: [Quantum GIS] #3097: Add preference to set/override environment variables

Quantum GIS qgis at qgis.org
Sun Oct 31 12:37:05 EDT 2010


#3097: Add preference to set/override environment variables
------------------------------------------------+---------------------------
   Reporter:  kyngchaos                         |              Owner:  nobody       
       Type:  enhancement                       |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.6.0
  Component:  GUI                               |            Version:  Trunk        
   Keywords:  shell environment                 |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------

Comment(by kyngchaos):

 Specific example: GdalTools.  It does have a path configuration option,
 for where the GDAL programs are, but it's not enough.  There are 2
 problems:

 * can't find python - the env PATH is empty, except for the configured
 path, so GDAL python programs can't find python to be able to run.  This
 one is solvable by adding /usr/bin to the configured GDAL path, but a user
 shouldn't have to do this, and multiple paths in the setting is
 unintuitive considering that the choose button returns only a single path.

 * can't find GDAL python extensions (#3170) - in a normal installation,
 this works, as GDAL python is in the standard user site-packages folder
 which python knows about.  But when GDAL is bundled in the Qgis standalone
 application, python does not have the Qgis python folder in its sys.path,
 and any external python scripts, like many GDAL programs, can't import
 gdal. (external python scripts don't use the Qgis python interpreter)

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3097#comment:1>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list