I am developing a standalone app using qgis librarys and run the python inside qgis. I import the librarys with no errors but I have one last error: ImportError: no module named site. I define the paths like this:
'PYTHONHOME': 'C:\OSGeo4W64\apps\Python27', 'PYTHONPATH': 'C:\OSGeo4W64\apps\Python27\Lib', 'PATH': 'C:\OSGeo4W64\apps\qgis\bin;C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\Python27'
I see that site.py is in 'C:\OSGeo4W64\apps\Python27\Lib', so I still have the error. The app doesn't read the correct site.py?