[PythonCAD] PythonCAD on OS X 10.4.3

Art Haas ahaas at airmail.net
Thu Nov 24 14:51:51 CET 2005


On Wed, Nov 23, 2005 at 10:59:39PM +0100, Pierre Vaudrey wrote:
> 
> Le 23 nov. 05 ? 19:10, Art Haas a ?crit :
> 
> >Try 'svn update'
> >and see what subversion does.
> after svn update find attached new import adjustments :
> [ ... snip ... ]

I've applied all these patches. Thanks!

> with the following result at running :
> 
> Traceback (most recent call last):
> [ ... snip  ... ]
>   File "/Users/pierreva/Documents/pythoncad2/build/PythonCad.app/ 
> Contents/Resources/PythonCAD/Interface/Cocoa/CocoaEntities.py", line  
> 80, in ?
>     Globals.s = None
> NameError: name 'Globals' is not defined

As you've changed the import statement to this form ...

import PythonCAD.Interface.Cocoa.Globals

... the 'Globals' variables now need to be referenced with the complete
path. So, the error above would be fixed by changing that line to ...

PythonCAD.Interface.Cocoa.Globals.s = None

That is a lot of typing, so it may be better to again adjust the
'import' statments to look like this ...

from PythonCAD.Interface.Cocoa import Globals

Using the 'from' style of module importing allows for shorter module
references in the code, so the 'Globals.s' line above would be valid.

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822


More information about the PythonCAD mailing list