diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-16 13:55:21 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-16 13:55:21 +0000 |
commit | a40c3e11cbe3f7e66f6110b1417f7841043170a6 (patch) | |
tree | 0151c42a664d629ec1d5e72cde586204d2ef7060 /Mac | |
parent | 7c30a130040720c0432427163c24f1292dbdda66 (diff) | |
download | cpython-a40c3e11cbe3f7e66f6110b1417f7841043170a6.tar.gz |
Import EasyDialogs only when needed, so this works if there is no window
manager (if it isn't needed).
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/scripts/zappycfiles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py index b5af2d0423..0349220d9e 100644 --- a/Mac/scripts/zappycfiles.py +++ b/Mac/scripts/zappycfiles.py @@ -2,7 +2,6 @@ """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,6 +10,7 @@ doit = 1 def main(): if not sys.argv[1:]: if os.name == 'mac': + import EasyDialogs dir = EasyDialogs.AskFolder(message='Directory to zap pyc files in') if not dir: sys.exit(0) |