source: pycodebattler/trunk/pycodebattler/scouter.py @ 47

Revision 47, 435 bytes checked in by atzm, 13 years ago (diff)

add keywords Id

  • Property svn:keywords set to Id
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3# $Id$
4
5import sys
6import pycodebattler
7
8
9def _main_entry():
10    if len(sys.argv) == 1:
11        p = [pycodebattler.warrior.Warrior('stdin', sys.stdin)]
12    else:
13        p = [pycodebattler.warrior.Warrior(
14             pycodebattler.util.path2name(f), open(f))
15             for f in sys.argv[1:]]
16
17    print(pycodebattler.warrior.pformat(p))
18
19
20if __name__ == '__main__':
21    _main_entry()
Note: See TracBrowser for help on using the repository browser.