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 _______________________________________________ PythonCAD mailing list [email protected] http://mail.python.org/mailman/listinfo/pythoncad
