mirror of
https://github.com/python/cpython.git
synced 2025-10-30 13:11:29 +00:00
Use new file dialogs.
This commit is contained in:
parent
d9db3a6713
commit
b340acf9fd
16 changed files with 72 additions and 78 deletions
|
|
@ -12,6 +12,7 @@
|
|||
"""
|
||||
|
||||
import macfs
|
||||
import EasyDialogs
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
|
|
@ -53,7 +54,7 @@ def walk(top):
|
|||
remove(top)
|
||||
|
||||
|
||||
fss, ok = macfs.GetDirectory("Please locate the Python home directory")
|
||||
if ok:
|
||||
walk(fss.as_pathname())
|
||||
pathname = EasyDialogs.AskFolder(message="Please locate the Python home directory")
|
||||
if pathname:
|
||||
walk(pathname)
|
||||
sys.exit(1) # so we see the results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue