changeset 597:04dfe64d1ba7

STUB: .emacs
author Jeff Hammel <k0scist@gmail.com>
date Wed, 29 Jan 2014 12:23:55 -0800
parents c5537e841c78
children e21c49e32b95
files .emacs
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.emacs	Wed Jan 29 11:12:09 2014 -0800
+++ b/.emacs	Wed Jan 29 12:23:55 2014 -0800
@@ -165,6 +165,9 @@
 
     usage = '%prog [options]'
     parser = argparse.ArgumentParser(usage=usage, description=__doc__)
+    parser.add_option('input', nargs='?',
+                      type=argparse.FileType('r'), default=sys.stdin,
+                      help='input file, or read from stdin if ommitted')
     options = parser.parse_args(args)
 
 if __name__ == '__main__':
@@ -190,7 +193,7 @@
     return imp.load_source(module, dest)
 ")
 
-(fset 'mozbase-test "#!/usr/bin/env python
+(fset 'python-test "#!/usr/bin/env python
 
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this file,