# HG changeset patch # User Jeff Hammel # Date 1389999704 28800 # Node ID 5f186e65da097f0a140c26532946c62565a30018 # Parent 00f5e55cbce8aee519dbd65d1d2da262efc5f445 STUB: python/lsexts.py diff -r 00f5e55cbce8 -r 5f186e65da09 python/lsexts.py --- a/python/lsexts.py Fri Jan 17 14:58:26 2014 -0800 +++ b/python/lsexts.py Fri Jan 17 15:01:44 2014 -0800 @@ -12,8 +12,8 @@ for _, _, fnames in os.walk(directory): _extensions.update(extensions(*fnames)) return _extensions - + if __name__ == '__main__': import sys - for ext in sorted(find_extensions(*sys.argv[1:])): + for ext in sorted(find_extensions(*(sys.argv[1:] or [os.getcwd()]))): print ext