diff options
author | Just van Rossum <just@lettererror.com> | 1999-11-04 10:28:59 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 1999-11-04 10:28:59 (GMT) |
commit | 2e5b0f2166cb0b8a8d2152af8fa3817d0d2f66cf (patch) | |
tree | 21eeadc927854fafe312c04ca3ef0f323aac3781 /Mac/Tools/macfreeze/macgen_bin.py | |
parent | 8ff52764efbeb7e88dd96de2ef3209b17ab5c5f6 (diff) | |
download | cpython-2e5b0f2166cb0b8a8d2152af8fa3817d0d2f66cf.zip cpython-2e5b0f2166cb0b8a8d2152af8fa3817d0d2f66cf.tar.gz cpython-2e5b0f2166cb0b8a8d2152af8fa3817d0d2f66cf.tar.bz2 |
Adapted to new macmudulefinder.process() API. (jvr)
Diffstat (limited to 'Mac/Tools/macfreeze/macgen_bin.py')
-rw-r--r-- | Mac/Tools/macfreeze/macgen_bin.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Mac/Tools/macfreeze/macgen_bin.py b/Mac/Tools/macfreeze/macgen_bin.py index f3b97b3..04260ed 100644 --- a/Mac/Tools/macfreeze/macgen_bin.py +++ b/Mac/Tools/macfreeze/macgen_bin.py @@ -12,7 +12,7 @@ import cfmfile import buildtools -def generate(input, output, module_dict = None, architecture = 'fat', debug=0): +def generate(input, output, module_dict=None, architecture='fat', debug=0): # try to remove old file try: os.remove(output) @@ -22,7 +22,14 @@ def generate(input, output, module_dict = None, architecture = 'fat', debug=0): if module_dict is None: import macmodulefinder print "Searching for modules..." - module_dict = macmodulefinder.process(input, [], [], 1) + module_dict, missing = macmodulefinder.process(input, [], [], 1) + if missing: + import EasyDialogs + missing.sort() + answer = EasyDialogs.AskYesNoCancel("Some modules could not be found; continue anyway?\n(%s)" + % string.join(missing, ", ")) + if answer <> 1: + sys.exit(0) applettemplatepath = buildtools.findtemplate() corepath = findpythoncore() |