I have been searching couple of hours for a solution but no success. I am working on a 64bit windows with python 2.7.2 32bit installation. When I run os.environ['path'] in my python this is what I get:
'C:\Python27\ArcGIS10.1\lib\site-packages\numpy\core;C:\Program Files (x86)\Common Files\Intergraph\Grid Analysis SDK\1.0\Program;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\'
But when I check the path in Control Panel>System>Advanced system setting>Advanced>Environment Variables" this is what I have as a value:
C:\Python27\ArcGIS10.1;C:\Python27\ArcGIS10.1\Scripts;C:\Python27\ArcGIS10.1\Lib\site-packages\osgeo;C:\Program Files (x86)\Common Files\Intergraph\Grid Analysis SDK\1.0\Program;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0
I am wondering why this values are different? for example C:\Python27\ArcGIS10.1\Lib\site-packages\osgeo does not exist in os.environ['path']!! any idea?