comparison python/lsexts.py @ 575:5f186e65da09

STUB: python/lsexts.py
author Jeff Hammel <k0scist@gmail.com>
date Fri, 17 Jan 2014 15:01:44 -0800
parents 081614c468b8
children
comparison
equal deleted inserted replaced
574:00f5e55cbce8 575:5f186e65da09
10 _extensions = set() 10 _extensions = set()
11 for directory in directories: 11 for directory in directories:
12 for _, _, fnames in os.walk(directory): 12 for _, _, fnames in os.walk(directory):
13 _extensions.update(extensions(*fnames)) 13 _extensions.update(extensions(*fnames))
14 return _extensions 14 return _extensions
15 15
16 if __name__ == '__main__': 16 if __name__ == '__main__':
17 import sys 17 import sys
18 for ext in sorted(find_extensions(*sys.argv[1:])): 18 for ext in sorted(find_extensions(*(sys.argv[1:] or [os.getcwd()]))):
19 print ext 19 print ext