]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use the new package-based scripting support.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 17 Aug 2000 22:12:12 +0000 (22:12 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 17 Aug 2000 22:12:12 +0000 (22:12 +0000)
Mac/scripts/fullbuild.py

index 2dadfa9e672dc64131bee8ca5830c1ffa3ea5a5a..fef2a42ea5a33debba3e17927222172cd0733e7e 100644 (file)
@@ -21,9 +21,16 @@ import string
 
 import aetools
 import AppleEvents
-from Metrowerks_Shell_Suite import Metrowerks_Shell_Suite
-from CodeWarrior_Standard_Suite import CodeWarrior_Standard_Suite
-from Required_Suite import Required_Suite
+
+OLDAESUPPORT = 0
+
+if OLDAESUPPORT:
+       from Metrowerks_Shell_Suite import Metrowerks_Shell_Suite
+       from CodeWarrior_suite import CodeWarrior_suite
+       from Metrowerks_Standard_Suite import Metrowerks_Standard_Suite
+       from Required_Suite import Required_Suite
+else:
+       import CodeWarrior
 
 import Res
 import Dlg
@@ -53,9 +60,12 @@ I_APPLETS=12
 
 N_BUTTONS=13
 
-class MwShell(Metrowerks_Shell_Suite, CodeWarrior_Standard_Suite,
-                               Required_Suite, aetools.TalkTo):
-       pass
+if OLDAESUPPORT:
+       class MwShell(Metrowerks_Shell_Suite, CodeWarrior_suite, Metrowerks_Standard_Suite,
+                                       Required_Suite, aetools.TalkTo):
+               pass
+else:
+       MwShell = CodeWarrior.CodeWarrior
 
 RUNNING=[]