mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use new file dialogs.
This commit is contained in:
parent
d9db3a6713
commit
b340acf9fd
16 changed files with 72 additions and 78 deletions
|
@ -205,10 +205,10 @@ def findpythoncore():
|
|||
raise "Unknown MacOS.runtimemodel", MacOS.runtimemodel
|
||||
corepath = os.path.join(extpath, corename)
|
||||
if not os.path.exists(corepath):
|
||||
fss, ok = macfs.PromptGetFile("Please locate PythonCore:", "shlb")
|
||||
if not ok:
|
||||
corepath = EasyDialogs.AskFileForOpen(message="Please locate PythonCore:",
|
||||
typeList=("shlb",))
|
||||
if not corepath:
|
||||
raise KeyboardInterrupt, "cancelled"
|
||||
corepath = fss.as_pathname()
|
||||
return resolvealiasfile(corepath)
|
||||
|
||||
def resolvealiasfile(path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue