mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without posting the dialog. This is the normal situation since 1.6alfa (no more 68k support).
This commit is contained in:
parent
5199c54e38
commit
919d3267ff
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,9 @@ GENFAT_BUTTON = 4
|
|||
GENPPC_BUTTON = 5
|
||||
GEN68K_BUTTON = 6
|
||||
|
||||
# Define this if we cannot generate 68/fat binaries (Python 1.6)
|
||||
PPC_ONLY=1
|
||||
|
||||
|
||||
try:
|
||||
Res.GetResource('DITL', DLG_ID)
|
||||
|
@ -108,6 +111,8 @@ class radio:
|
|||
|
||||
|
||||
def interact(scriptname):
|
||||
if PPC_ONLY:
|
||||
return 'pwpc'
|
||||
d = Dlg.GetNewDialog(DLG_ID, -1)
|
||||
if not d:
|
||||
print "Can't get DLOG resource with id =", DLG_ID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue