[Bf-funboard] Question on appending

jms jmsoler at free.fr
Wed Sep 15 11:51:46 CEST 2004


Stephen Swaney wrote:

>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.
>
>  
>
Not exactly a news, this method is used in the povanim script since 2 years:
http://jmsoler.free.fr/util/blenderfile/povanim.htm

@+


More information about the Bf-funboard mailing list