Mercurial > eagle-eye
diff pyikriam/example.py @ 174:0cfc7a19a4d2
branch merged
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Sun, 02 Nov 2008 04:12:23 +0800 |
parents | 8f699a9da6c0 |
children | 3ba3edda6d1e |
line wrap: on
line diff
--- a/pyikriam/example.py Sun Nov 02 04:12:00 2008 +0800 +++ b/pyikriam/example.py Sun Nov 02 04:12:23 2008 +0800 @@ -1,5 +1,5 @@ import sys -from __init__ import Ikariam +from ikariam import Ikariam if len(sys.argv) != 2: print >> sys.stderr, 'Usage: %s <city id>' % (sys.argv[0]) @@ -23,3 +23,5 @@ print 'sulfur is ' + city.sulfur print 'positions ' + repr(city.positions) +city.positions[0].sync() +print 'positions[0] level is ' + str(city.positions[0].level)