<div dir="ltr">Dear QGIS users,<div><br></div><div>I have problem setting up custom GRASS-related variables in QGIS settings (use custom variables):</div><div><br></div><div><img src="cid:ii_lky8s4rk0" alt="image.png" width="487" height="94"><br></div><div>Unfortunately after restarting QGIS the statement below in Python Console</div><div><br></div><div>from grass.pygrass.gis import Mapset<br></div><div><br></div><div>fails with</div><div><br></div><div>ImportError: Could not load grass_raster.8.4.</div><div><br></div><div>When I set the same environmental variables before starting QGIS from shell than the pyGRASS statement *works*:</div><div><br></div><div>GISBASE=/home/martin/src/grass/dist.x86_64-pc-linux-gnu PYTHONPATH=/home/martin/src/grass/dist.x86_64-pc-linux-gnu/etc/python LD_LIBRARY_PATH=/home/martin/src/grass/dist.x86_64-pc-linux-gnu/lib qgis <br><div><br></div><div>Any idea why custom variables defined by QGIS settings fail in this case? Why are they behaving differently from environmental variables defined in the shell?</div><div><br></div><div>Thanks in advance, Martin</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Martin Landa<br><a href="http://geo.fsv.cvut.cz/gwiki/Landa" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br><a href="http://gismentors.cz/mentors/landa" target="_blank">http://gismentors.cz/mentors/landa</a></div></div></div>