diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-26 22:15:48 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-26 22:15:48 +0000 |
| commit | fd0b00e0a7c11e3ba5743cfc82b7e9ef099453c7 (patch) | |
| tree | 36784415dde6ba18950ed49bf94b3b2ca6eff71e /Mac/Tools/IDE/ProfileBrowser.py | |
| parent | 2373ff4e4ffbcd35112e13528b162ee80e4786cc (diff) | |
| download | cpython-git-fd0b00e0a7c11e3ba5743cfc82b7e9ef099453c7.tar.gz | |
Use new file dialogs.
Diffstat (limited to 'Mac/Tools/IDE/ProfileBrowser.py')
| -rw-r--r-- | Mac/Tools/IDE/ProfileBrowser.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/ProfileBrowser.py b/Mac/Tools/IDE/ProfileBrowser.py index b3e9d990fe..c7a81ccebf 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 @@ def main(): 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__': |
