On Thu, 2005-01-06 at 23:08 +0000, Floris Bruynooghe wrote:

> > >>> import PythonCAD
> > >>> sys.path
> > ['', '/usr/lib/python23.zip', '/usr/lib/python2.3', 
> > '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', 
> > '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', 
> > '/usr/lib/python2.3/site-packages/FontTools', 
> > '/usr/lib/python2.3/site-packages/Numeric', 
> > '/usr/lib/python2.3/site-packages/PIL', 
> > '/usr/lib/python2.3/site-packages/gtk-2.0', 
> > '/usr/lib/python2.3/site-packages/vtk_python']
> > >>>
> > 
> > still no pythoncad on the list...
> 
> PythonCAD as package will never appear on the sys.path list.
> sys.path is only a list of diretories where python will look for
> a subdirectory named 'PyhonCAD' if you type 'import PytonCAD'.
> The fact that the import statement did give no output means
> everything was ok.  If you really want to see it you could use
> the 'dir()' command or you could do 'dir(PythonCAD)' to see which
> attributes PythonCAD has.  Only after the import though.  Sorry
> if this wasn't clear in the last email.
> 
> I see that the INSTALL file says it should show up in sys.path
> but personally I don't see why.  My guess is that that bit of
> documentation is out of date.
> 

Indeed it is. I'll adjust the text in this file. Thanks for spotting
this.

Also, the problem about the 'gc' variable mentioned in this thread is a
bug in the code. The variable should have been '_gc'. The fix is to add
the underscore on lines 77 and 83. This will be fixed in the next
release.

-- 
Art Haas <[EMAIL PROTECTED]>

_______________________________________________
PythonCAD mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythoncad

Reply via email to