[Sugar-devel] About adding toolkit_type and toolkit_version options to bundles
Sam Parkinson
sam.parkinson3 at gmail.com
Mon Feb 17 15:28:34 EST 2014
Oops, forgot reply all...
On Feb 18, 2014 7:26 AM, "Sam Parkinson" <sam.parkinson3 at gmail.com> wrote:
>
> Hi,
>
> Just thinking on the optimization train (bullet train?), would something
like this be ok? (For the toolkit testing thing)
>
> x = getattr(__import__(main_file), class_name)
> if isinstance(x, sugar3.Activity):
> ....
>
> Is importing classes on the fly bad? This could be faster.
>
> Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140218/f34b447f/attachment.html>
More information about the Sugar-devel
mailing list