![]() If I remove the importing of the processing framework section of the py script then 'Hello QGIS!' is printed in the batch window but the GUI does not launch.Īdd an example that is working. # Import and initialize Processing frameworkįrom import ProcessingĬurrently this code fails with the following message: ('C:\Program Files\QGIS 3.4\apps\qgis\python\plugins') tPrefixPath("C:\Program Files\QGIS 3.4\apps\qgis", True) Set PYTHONPATH=%OSGEO4W_ROOT%\apps\qgis\python %PYTHONPATH% Set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins %OSGEO4W_ROOT%\apps\qt5\plugins Rem Set VSI cache to be used as buffer, see #6448 Set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis SET OSGEO4W_ROOT=C:\Program Files\QGIS 3.4Ĭall "C:\Program Files\QGIS 3.4\bin\o4w_env.bat"Ĭall "C:\Program Files\QGIS 3.4\bin\qt5_env.bat" ![]() ![]() I've reviewed numerous instances referencing similar scenarios on this and other forums but for the life of me I can't get it to work. Ultimately I'm attempting to launch the QGIS GUI and run a python script from a batch file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |