<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY>
<DIV><SPAN class=614052214-16032010><FONT color=#0000ff size=2 face=Arial>Thanks 
for the suggestion Pable.</FONT></SPAN></DIV>
<DIV><SPAN class=614052214-16032010><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=614052214-16032010><FONT color=#0000ff size=2 
face=Arial>However, I really need the <FONT color=#000000>$PYTHONPATH</FONT> to 
include this additional library, so all Python scripts could use 
it.</FONT></SPAN></DIV>
<DIV><SPAN class=614052214-16032010><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=614052214-16032010><FONT color=#ff00ff>
<DIV><SPAN class=326025013-16032010><FONT face=Arial><FONT size=2><FONT 
color=#0000ff><SPAN class=614052214-16032010>I</SPAN>n Windows I have defined 
<FONT color=#000000>PYTHONPATH</FONT> as <FONT 
color=#000000>c:\views\cc_view\TS_svm_ts_tool\SVMInspector\lib\</FONT>, and also 
in the <FONT color=#000000>Windows registry</FONT> I have <SPAN 
class=pre></SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=326025013-16032010><FONT size=2><FONT color=#0000ff 
face=Arial><SPAN class=pre></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=326025013-16032010><FONT size=2><FONT face=Arial><FONT 
color=#0000ff><FONT color=#000000><SPAN 
class=pre>HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\</SPAN><EM><SPAN 
class=pre>version</SPAN></EM></FONT><SPAN class=pre><FONT 
color=#000000>\PythonPath\</FONT> as <FONT 
color=#000000>C:\Python26\Lib;C:\Python26\DLLs;<FONT 
color=#800080>C:\views\cc_view\TS_svm_ts_tool\SVMInspector\lib\</FONT>;C:\Python26\Lib\lib-tk;</FONT></SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=326025013-16032010><FONT color=#0000ff size=2 face=Arial><SPAN 
class=pre></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=326025013-16032010><FONT color=#0000ff size=2 face=Arial><SPAN 
class=pre>However, even with all the above, the SVMInspecor modules are not 
found.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=326025013-16032010><FONT color=#0000ff size=2 face=Arial><SPAN 
class=pre></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=326025013-16032010><FONT color=#0000ff size=2 face=Arial><SPAN 
class=pre><SPAN class=614052214-16032010>Bye,</SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=326025013-16032010><FONT color=#0000ff size=2 face=Arial><SPAN 
class=pre><SPAN 
class=614052214-16032010>Ron.</SPAN></SPAN></FONT></SPAN></DIV></FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ff00ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> Pablo Recio Quijano 
  [mailto:rikutheronin@gmail.com] <BR><B>Sent:</B> Tuesday, March 16, 2010 2:27 
  PM<BR><B>To:</B> python-list@python.org<BR><B>Subject:</B> Re: How to add a 
  library path to pythonpath ?<BR></FONT><BR></DIV>
  <DIV></DIV>You have to add yout path to the list:
  <DIV><BR></DIV>
  <DIV><FONT class=Apple-style-span face="'courier new', monospace">import 
  sys</FONT></DIV>
  <DIV><FONT class=Apple-style-span 
  face="'courier new', monospace">sys.path.append(your_path)</FONT></DIV>
  <DIV><BR></DIV>
  <DIV>Jus simple to add the element on the list :)<BR><BR>
  <DIV class=gmail_quote>2010/3/16 Barak, Ron <SPAN dir=ltr><<A 
  href="mailto:Ron.Barak@lsi.com">Ron.Barak@lsi.com</A>></SPAN><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV>
    <P><FONT size=2>Hi,<BR><BR>I'm trying to add a library path to my 
    pythonpath, but seems it is not accepted -</FONT></P>
    <P><FONT size=2>On Windows DOS window:<BR><BR></FONT><FONT size=2><FONT 
    face=Courier>C:\>echo 
    %PYTHONPATH%<BR>c:\views\cc_view\TS_svm_ts_tool\SVMInspector\lib\<BR><BR>C:\>python 
    -c "import sys ; print sys.path"<BR>['', 
    'c:\\views\\cc_view\\TS_svm_ts_tool\\SVMInspector\\lib', 
    'C:\\WINDOWS\\syst<BR>em32\\python26.zip', 'C:\\Python26\\DLLs', 
    'C:\\Python26\\lib', 'C:\\Python26\\l<BR>ib\\plat-win', 
    'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 
    'C:\\Python26\\lib\\<BR>site-packages', 
    'C:\\Python26\\lib\\site-packages\\wx-2.8-msw-unicode']<BR><BR>C:\></FONT></FONT></P>
    <P><FONT size=2>On Windows cygwin:</FONT></P>
    <P><FONT size=2><FONT face=Courier>$ echo 
    $PYTHONPATH<BR>.:/cygdrive/c/views/cc_view/TS_svm_ts_tool/SVMInspector/lib/</FONT></FONT></P>
    <P><FONT size=2><FONT face=Courier>$ python -c "import sys ; print 
    sys.path"<BR>['', 
    '.:\\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']</FONT></FONT></P>
    <P><FONT size=2><FONT face=Courier>$ <BR></FONT><BR>What am I doing wrong 
    ?<BR><BR>Thanks,<BR>Ron.</FONT></P>
    <P><FONT size=2><BR> </FONT></P></DIV><BR>--<BR><A 
    href="http://mail.python.org/mailman/listinfo/python-list" 
    target=_blank>http://mail.python.org/mailman/listinfo/python-list</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>Pablo Recio Quijano<BR><BR>Estudiante de Ingeniería 
  Informática (UCA)<BR>Alumno colaborador del Departamento de Lenguajes y 
  Sistemas Informáticos<BR>Participante del IV Concurso Universitario de 
  Software Libre<BR></DIV></BLOCKQUOTE></BODY></HTML>