mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
Added prompts to various file-select dialogs
Renumbered resources to above 512
This commit is contained in:
parent
ad169272fb
commit
9062fa2fb5
7 changed files with 31 additions and 35 deletions
|
@ -77,14 +77,10 @@ def handlesubdir(handle, id, srcdir):
|
|||
if __name__ == '__main__':
|
||||
args = sys.argv[1:]
|
||||
if not args:
|
||||
ifss, ok = macfs.StandardGetFile('PYC ')
|
||||
if ok:
|
||||
args = [ifss.as_pathname()]
|
||||
else:
|
||||
ifss, ok = macfs.GetDirectory()
|
||||
if not ok:
|
||||
sys.exit(0)
|
||||
args = [ifss.as_pathname()]
|
||||
ifss, ok = macfs.GetDirectory('Select root of tree to pack:')
|
||||
if not ok:
|
||||
sys.exit(0)
|
||||
args = [ifss.as_pathname()]
|
||||
for ifn in args:
|
||||
ofss, ok = macfs.StandardPutFile('Output for '+os.path.split(ifn)[1])
|
||||
if not ok:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue