Use new file dialogs.
diff --git a/Mac/Tools/IDE/ProfileBrowser.py b/Mac/Tools/IDE/ProfileBrowser.py
index b3e9d99..c7a81cc 100644
--- a/Mac/Tools/IDE/ProfileBrowser.py
+++ b/Mac/Tools/IDE/ProfileBrowser.py
@@ -1,5 +1,6 @@
import W
from Carbon import Evt
+import EasyDialogs
import sys
import StringIO
@@ -83,9 +84,9 @@
browser = ProfileBrowser(stats)
else:
import macfs
- fss, ok = macfs.PromptGetFile('Profiler data')
- if not ok: sys.exit(0)
- stats = pstats.Stats(fss.as_pathname())
+ filename = EasyDialogs.AskFileForOpen(message='Profiler data')
+ if not filename: sys.exit(0)
+ stats = pstats.Stats(filename)
browser = ProfileBrowser(stats)
if __name__ == '__main__':