Thursday, 2 November 2017

System variable PATH overwritten in QGIS?



The system env variable 'PATH' seems to be overwritten in Qgis, replacing it with their own values. Not sure if it was intended or not.


Anyway in version 2.2, I could solve it by go into settings and appending the PATH variable with the values copied from system properties => environment variables.


Apparently for version 2.4, the above solution does not work anymore and Qgis will always overwrite the PATH variable with their own values.


I needed the PATH variable as my project requires the execution of external programs from Qgis by making use of python subprocess module. Now in v2.4, external programs cannot be executed. I do not wish to define absolute path for all the external programs as the project will frequently be ported to different systems.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...