[Bf-funboard] Question on appending
Stephen Swaney
sswaney at swbell.net
Wed Sep 15 04:18:32 CEST 2004
joeedh wrote:
>
> First, a invaluable tip for developing Blender modules: don't import
> then. Concatinate the lines from the Text object and run it using
> exec(). Blender will only import from a Text object once. After that,
> it will NOT reload it, not even if you tell Blender to reload the file.
> You have to physically exit Blender, or maybe open another file, or
> something to clear it.
This is standard Python behavior. Python will not reload a
module if its name can be found in sys.modules. The solution
is to force a reload:
import some_module
reload( some_module )
The question appears in the Python Programming FAQ.
--
Stephen Swaney
sswaney at swbell.net
More information about the Bf-funboard
mailing list