« Previous | Next » 

Revision c3a44400

IDc3a4440025a0d335ee86b6aeb191fd3b31f940d5
Parent 54683776
Child 2235f216

Added by Bob Lantz over 10 years ago

Changed custom feature so that params aren't added to globals.

There is probably a better way of doing this, but currently
parseCustomFile can modify globals (e.g. TOPOS) as well as
instance variables (self.validate) and classes (e.g. MyTopo),
which are also in the global name space.

Inconveniently enough, lambdas don't seem to be full closures
in Python; if they were, this trickiness would be unnecessary.

Even so, using execfile() seems like it might be a bit dubious...

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences