Skip to content

Instantly share code, notes, and snippets.

@fpsampayo
Created June 12, 2017 13:31
Show Gist options
  • Save fpsampayo/e3618699c80d3dfb659b5ff35fdb7192 to your computer and use it in GitHub Desktop.
Save fpsampayo/e3618699c80d3dfb659b5ff35fdb7192 to your computer and use it in GitHub Desktop.
pycharm for pyqgis development
@echo off
SET OSGEO4W_ROOT=C:\OSGeo4W64
CALL %OSGEO4W_ROOT%\bin\o4w_env.bat
@echo off
path %PATH%;%OSGEO4W_ROOT%\apps\qgis\bin
set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis\python
set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis\python\plugins
set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\Lib\site-packages
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT%\apps\qgis
SET PYCHARM="C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.2.3\bin\pycharm.exe"
start "PyCharm aware of QGIS" /B %PYCHARM% %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment