mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Use auto-start functionality of aetools.TalkTo and aetools.Error for
server-generated errors.
This commit is contained in:
parent
977fbf271e
commit
b9e5e14158
2 changed files with 4 additions and 14 deletions
|
@ -70,10 +70,8 @@ project_files = {}
|
||||||
|
|
||||||
def hexbincwprojects(creator):
|
def hexbincwprojects(creator):
|
||||||
"""Compact and hexbin all files remembered with a given creator"""
|
"""Compact and hexbin all files remembered with a given creator"""
|
||||||
print 'Please start project mgr with signature', creator,'-'
|
|
||||||
sys.stdin.readline()
|
|
||||||
try:
|
try:
|
||||||
mgr = MwShell(creator)
|
mgr = MwShell(creator, start=1)
|
||||||
except 'foo':
|
except 'foo':
|
||||||
print 'Not handled:', creator
|
print 'Not handled:', creator
|
||||||
return
|
return
|
||||||
|
|
|
@ -32,15 +32,7 @@ RUNNING=[]
|
||||||
|
|
||||||
def buildmwproject(top, creator, projects):
|
def buildmwproject(top, creator, projects):
|
||||||
"""Build projects with an MW compiler"""
|
"""Build projects with an MW compiler"""
|
||||||
if not creator in RUNNING:
|
mgr = MwShell(creator, start=1)
|
||||||
print 'Please start project mgr with signature', creator,'-'
|
|
||||||
sys.stdin.readline()
|
|
||||||
RUNNING.append(creator)
|
|
||||||
try:
|
|
||||||
mgr = MwShell(creator)
|
|
||||||
except 'foo':
|
|
||||||
print 'Not handled:', creator
|
|
||||||
return
|
|
||||||
mgr.send_timeout = AppleEvents.kNoTimeOut
|
mgr.send_timeout = AppleEvents.kNoTimeOut
|
||||||
|
|
||||||
for file in projects:
|
for file in projects:
|
||||||
|
@ -50,8 +42,8 @@ def buildmwproject(top, creator, projects):
|
||||||
mgr.open(fss)
|
mgr.open(fss)
|
||||||
try:
|
try:
|
||||||
mgr.Make_Project()
|
mgr.Make_Project()
|
||||||
except MacOS.Error, arg:
|
except aetools.Error, arg:
|
||||||
print '** Failed. Possible error:', arg
|
print '** Failed:', arg
|
||||||
mgr.Close_Project()
|
mgr.Close_Project()
|
||||||
## mgr.quit()
|
## mgr.quit()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue