665 |
|
|
666 |
############################ |
############################ |
667 |
# This is a workaround for McMillan packaging!!! |
# This is a workaround for McMillan packaging!!! |
|
# gnue.designer.WizardFiles.py |
|
|
# is autocreated at McMillan's analysis time by |
|
|
# hook-gnue.designer.Designer.py |
|
|
# It contains a list of available wizards. |
|
668 |
# McMillan sets sys.frozen=1 in packaged exe file. |
# McMillan sets sys.frozen=1 in packaged exe file. |
669 |
############################ |
############################ |
670 |
if hasattr(sys, 'frozen'): |
if hasattr(sys, 'frozen'): |
671 |
from gnue.designer import WizardFiles |
exec "from %s import WIZARDS" % package.__name__ |
672 |
for template in WizardFiles.WizardFiles: |
for wizard in WIZARDS: |
673 |
t = template.split('.') |
try: |
674 |
if '.'.join(t[0:4]) == package.__name__: |
templates.append(dyn_import('%s.%s' % (package.__name__,wizard)).TemplateInformation) |
675 |
try: |
except ImportError: |
676 |
templates.append(dyn_import('%s' % template).TemplateInformation) |
pass |
677 |
except ImportError: |
except AttributeError: |
678 |
pass |
pass |
|
except AttributeError: |
|
|
pass |
|
679 |
else: |
else: |
680 |
############ |
############ |
681 |
# end of workaround |
# end of workaround |