summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/zappycfiles.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-06-16 13:55:21 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-06-16 13:55:21 (GMT)
commit7327918631eb7a67598a7d76f3bd0d3dbcdd1fd5 (patch)
treef137680a397b836997c5f06efae1faed170e50ab /Mac/scripts/zappycfiles.py
parentf5e23ff3c6549e20824f34e8e22aaf729a911f1f (diff)
downloadcpython-7327918631eb7a67598a7d76f3bd0d3dbcdd1fd5.zip
cpython-7327918631eb7a67598a7d76f3bd0d3dbcdd1fd5.tar.gz
cpython-7327918631eb7a67598a7d76f3bd0d3dbcdd1fd5.tar.bz2
Import EasyDialogs only when needed, so this works if there is no window
manager (if it isn't needed).
Diffstat (limited to 'Mac/scripts/zappycfiles.py')
-rw-r--r--Mac/scripts/zappycfiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py
index b5af2d0..0349220 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)