Created
December 1, 2011 15:00
-
-
Save Iktomist/1417377 to your computer and use it in GitHub Desktop.
formats audouard coordinates, for use with games of shusaku and ingrainia-would-audibly-fume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=UTF-8 | |
import os, sys, tempfile | |
for file in sys.argv[1:]: | |
f = open(file) | |
fs = f.read() | |
r1 = fs.replace('a','a ') | |
r2 = r1.replace('b','b ') | |
r3 = r2.replace('c','c ') | |
r4 = r3.replace('d','d ') | |
r5 = r4.replace('. ','.\n') | |
f.close() | |
print r5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment