Ivan Voras wrote:

>Paul Rubin wrote:
>
>  
>
>>>your active code is then in some library.zip shared between the
>>>three, and you need never change alice.exe, bob.exe, and carol.exe
>>>      
>>>
>>I think I understand what you're saying and it sounds like a very
>>good idea.  Thanks.
>>    
>>
>
>One thing about updating files - sorry if I'm stating general and 
>universal knowledge, but beware that on Windows you can't delete and/or 
>replace a file if it's opened by any process.
>  
>
hence i found you must do this immediately after updating

sys.path_importer_cache.clear()
zipimport._zip_directory_cache.clear()

then unload your app

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to