[Python-checkins] python/dist/src/Mac/scripts zappycfiles.py,1.5,1.6
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
2003年6月16日 06:55:23 -0700
Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv22970/Mac/scripts
Modified Files:
zappycfiles.py
Log Message:
Import EasyDialogs only when needed, so this works if there is no window
manager (if it isn't needed).
Index: zappycfiles.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/zappycfiles.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** zappycfiles.py 5 Feb 2003 22:53:29 -0000 1.5
--- zappycfiles.py 16 Jun 2003 13:55:21 -0000 1.6
***************
*** 3,7 ****
import os
import sys
- import EasyDialogs
# set doit true to actually delete files
--- 3,6 ----
***************
*** 12,15 ****
--- 11,15 ----
if not sys.argv[1:]:
if os.name == 'mac':
+ import EasyDialogs
dir = EasyDialogs.AskFolder(message='Directory to zap pyc files in')
if not dir: