On 1/25/10 9:41 AM, Ed Leafe wrote:
> On Jan 25, 2010, at 12:39 PM, Paul McNett wrote:
>
>> This is unintended. Looking at that error I'm unsure how to use 
>> ensureMinimal() since
>> we can't guarantee that wx hasn't been imported yet. Perhaps it would be 
>> acceptable
>> to catch AlreadyImportedError in this case and just move on, which would be 
>> the same
>> behavior as before in that case.
>
>
> import sys
> if "wx" in sys.modules:
>       # already imported

Ask permission or ask forgiveness, it doesn't matter which.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to