Skip to content

Instantly share code, notes, and snippets.

@filipkral
Created December 11, 2015 01:46
Show Gist options
  • Save filipkral/51d811b9558b08e62e22 to your computer and use it in GitHub Desktop.
Save filipkral/51d811b9558b08e62e22 to your computer and use it in GitHub Desktop.
Importing OSGeo4W osgeo Python package to Pyscripter on Windows
import sys, os
sys.path.insert(0, r'C:\OSGeo4W\apps\Python27\Lib\site-packages')
#sys.path.insert(0, r'C:\OSGeo4W\lib')
sys.path.insert(0, r'C:\OSGeo4W\bin')
#os.environ['PATH'] = os.environ['PATH'] + ';' + r'C:\OSGeo4W\lib'
os.environ['PATH'] = os.environ['PATH'] + ';' + r'C:\OSGeo4W\bin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment