[Qgis-developer] 0.9 Python modules on windows

Peter Ersts ersts at amnh.org
Mon Jul 30 15:30:44 EDT 2007


If you just use

set PYTHONPATH=c:\foo

You will not get the concatenation of the path with the current launch 
path (e.g. 'C:\\Documents and Settings\\rowlings\\"c:\\foo"' )

-pete

Barry Rowlingson wrote:
>   Are you sure these are being set right? In python, do:
>
> import sys
> sys.path
>
> and check. I've not read the docs for PYTHONPATH on windows, but I cant 
> quite explain why:
>
> C:\Documents and Settings\rowlings>set PYTHONPATH="c:\foo"
>
> and then
>
> C:\Documents and Settings\rowlings>c:\Python25\python
> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit 
> (Intel)] on win 32
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import sys
>  >>> sys.path
> ['', 'C:\\Documents and Settings\\rowlings\\"c:\\foo"', ....
>
>   What the? Its appended what I wanted to my windows' 'home' 
> directory... I dont understand...
>
>   You can modify sys.path from within python if Windows refuses to play 
> sensibly :)
>
>   


-- 
====================================
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: (212)-496-3488 or (212)-769-5742
Fax: (212)-313-7295 or (212)-769-5292
Web: http://cbc.amnh.org
Web: http://geospatial.amnh.org

Open Source, Open Mind.
...evolving through community cooperation to change the world bit by bit





More information about the Qgis-developer mailing list