Use new file dialogs.

This commit is contained in:
Jack Jansen 2003-01-26 21:40:00 +00:00
parent d9db3a6713
commit b340acf9fd
16 changed files with 72 additions and 78 deletions

View file

@ -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):