Permalink
Browse files

Add simple parse test utility.

  • Loading branch information...
1 parent 2c0cada commit 224284392bcc7e8f17f70206f9f23052e9bc2128 @GraylinKim committed Jan 10, 2013
Showing with 14 additions and 1 deletion.
  1. +12 −0 sc2reader/scripts/sc2parse.py
  2. +2 −1 setup.py
View
12 sc2reader/scripts/sc2parse.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import sys
+import sc2reader
+
+def main():
+ for replay in sc2reader.load_replays(sys.argv[1:], verbose=True):
+ pass
+
+if __name__ == '__main__':
+ main()
View
3 setup.py
@@ -32,7 +32,8 @@
'sc2printer = sc2reader.scripts.sc2printer:main',
'sc2store = sc2reader.scripts.sc2store:main',
'sc2replayer = sc2reader.scripts.sc2replayer:main',
- 'sc2boprinter = sc2reader.scripts.sc2boprinter:main'
+ 'sc2boprinter = sc2reader.scripts.sc2boprinter:main',
+ 'sc2parse = sc2reader.scripts.sc2parse:main',
]
},
install_requires=['mpyq','argparse'] if float(sys.version[:3]) < 2.7 else ['mpyq'],

0 comments on commit 2242843

Please sign in to comment.