[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: How to add a library path to pythonpath ?

Steve Holden

3/16/2010 2:31:00 PM

Barak, Ron wrote:
> Hi,
>
> I'm trying to add a library path to my pythonpath, but seems it is not
> accepted -
>
> On Windows DOS window:
>
> C:\>echo %PYTHONPATH%
> c:\views\cc_view\TS_svm_ts_tool\SVMInspector\lib\
>
That looks like it should work. The only thing I notice is that I don't
have a trailing backslash on my Windows PYTHONPATH. Could that be the
problem?

regards
Steve

> C:\>python -c "import sys ; print sys.path"
> ['', 'c:\\views\\cc_view\\TS_svm_ts_tool\\SVMInspector\\lib',
> 'C:\\WINDOWS\\syst
> em32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib',
> 'C:\\Python26\\l
> ib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26',
> 'C:\\Python26\\lib\\
> site-packages', 'C:\\Python26\\lib\\site-packages\\wx-2.8-msw-unicode']
>
> C:\>
>
> On Windows cygwin:
>
> $ echo $PYTHONPATH
> .:/cygdrive/c/views/cc_view/TS_svm_ts_tool/SVMInspector/lib/
>
> $ python -c "import sys ; print sys.path"
> ['',
> '.:\\cygdrive\\c\\views\\cc_view\\TS_svm_ts_tool\\SVMInspector\\lib',
> 'C:\\WINDOWS\\system32\\python26.zip', 'c:\\Python26\\DLLs',
> 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win',
> 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26',
> 'c:\\Python26\\lib\\site-packages',
> 'c:\\Python26\\lib\\site-packages\\wx-2.8-msw-unicode']
>
> $
>
> What am I doing wrong ?
>
> Thanks,
> Ron.
>
>
>
>


--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pyco...
Holden Web LLC http://www.hold...
UPCOMING EVENTS: http://holdenweb.event...