https://issues.qgis.org/https://issues.qgis.org/favicon.ico2010-10-31T08:37:02ZQGIS Issue TrackingQGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=232872010-10-31T08:37:02ZWilliam Kyngesburyekyngchaos@kyngchaos.com
<ul></ul><p>Specific example: <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/GdalTools">GdalTools</a>. It does have a path configuration option, for where the GDAL programs are, but it's not enough. There are 2 problems:</p>
<ul>
<li>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.</li>
</ul>
<ul>
<li>can't find GDAL python extensions (<a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/3170" title="many GDAL Tools don't work in OS X standalone (Closed)">#3170</a>) - 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)</li>
</ul> QGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=266682011-11-30T16:25:23ZGiuseppe Sucamelibrush.tyler@gmail.com
<ul><li><strong>Assignee</strong> deleted (<del><i>nobody -</i></del>)</li><li><strong>Pull Request or Patch supplied</strong> set to <i>No</i></li></ul><p>William Kyngesburye wrote:</p>
<blockquote>
<ul>
<li>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.</li>
</ul>
</blockquote>
<p>This part should be fixed in commit 99edf1de05231f422c9f2f6e2110709557f62ea2. I know it's not enough, but I'm working to fix it at all.</p> QGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=273352011-12-16T12:55:44ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Target version</strong> changed from <i>Version 1.7.0</i> to <i>Version 1.7.4</i></li></ul> QGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=303742012-04-15T08:10:26ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Target version</strong> changed from <i>Version 1.7.4</i> to <i>Version 2.0.0</i></li></ul> QGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=359822012-10-06T00:23:39ZPirmin Kalberer
<ul><li><strong>Target version</strong> changed from <i>Version 2.0.0</i> to <i>Future Release - Nice to have</i></li></ul> QGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=381592013-01-03T01:39:14ZLarry Shaffer
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Target version</strong> changed from <i>Future Release - Nice to have</i> to <i>Version 2.0.0</i></li><li><strong>Pull Request or Patch supplied</strong> changed from <i>No</i> to <i>Yes</i></li></ul><p>Hi,</p>
<p>I've implemented a version of this in the following pull request:</p>
<p><a class="external" href="https://github.com/qgis/Quantum-GIS/pull/372">https://github.com/qgis/Quantum-GIS/pull/372</a></p>
<p>Please test.</p> QGIS Application - Feature request #3097: Add preference to set/override environment variableshttps://issues.qgis.org/issues/3097?journal_id=405592013-04-26T02:12:33ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Resolved in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/5cd7dc5d4d3cba8a25c8b139dff70ec0a6588851" title="Merge pull request #372 from dakcarto/iface_enviro_3 [FEATURE] Configure custom environment vari...">5cd7dc5</a></p>
<p>Please reopen if there are still problems.</p>