summaryrefslogtreecommitdiff
path: root/Mac/scripts/zappycfiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/scripts/zappycfiles.py')
-rw-r--r--Mac/scripts/zappycfiles.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py
index a8193c1206..6d3574877d 100644
--- a/Mac/scripts/zappycfiles.py
+++ b/Mac/scripts/zappycfiles.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
"""Recursively zap all .pyc and .pyo files"""
import os
import sys
@@ -9,15 +9,8 @@ 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)
- zappyc(dir)
- else:
- print 'Usage: zappyc dir ...'
- sys.exit(1)
+ print 'Usage: zappyc dir ...'
+ sys.exit(1)
for dir in sys.argv[1:]:
zappyc(dir)