summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/zappycfiles.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-26 21:40:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-26 21:40:00 (GMT)
commitb340acf9fd893140efd65a56134a814a8d9bac73 (patch)
treec991a32a9d7b34262675c1cd97969c352c43f74e /Mac/scripts/zappycfiles.py
parentd9db3a67138deec981184c173c290025e9760f1d (diff)
downloadcpython-b340acf9fd893140efd65a56134a814a8d9bac73.zip
cpython-b340acf9fd893140efd65a56134a814a8d9bac73.tar.gz
cpython-b340acf9fd893140efd65a56134a814a8d9bac73.tar.bz2
Use new file dialogs.
Diffstat (limited to 'Mac/scripts/zappycfiles.py')
-rw-r--r--Mac/scripts/zappycfiles.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py
index dcd4133..4637159 100644
--- a/Mac/scripts/zappycfiles.py
+++ b/Mac/scripts/zappycfiles.py
@@ -2,6 +2,7 @@
"""Recursively zap all .pyc and .pyo files"""
import os
import sys
+import EasyDialogs
# set doit true to actually delete files
# set doit false to just print what would be deleted
@@ -11,10 +12,9 @@ def main():
if not sys.argv[1:]:
if os.name == 'mac':
import macfs
- fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
- if not ok:
+ dir = EasyDialogs.AskFolder(message='Directory to zap pyc files in')
+ if not dir:
sys.exit(0)
- dir = fss.as_pathname()
zappyc(dir)
else:
print 'Usage: zappyc dir ...'