Created
May 19, 2010 00:25
-
-
Save jackperry/405761 to your computer and use it in GitHub Desktop.
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
f = open('idnum2itemdisplaynametable.txt', 'r') | |
g = open('output.txt', 'w') | |
for line in f: | |
x = line.replace('#',',"',1) | |
y = x.replace('#','","","");',1) | |
if y[1].isdigit(): | |
z = "REPLACE INTO `item_meta` VALUES (" + y | |
g.write(z) | |
else: | |
pass | |
f.close | |
g.close |
This is just a Python script to parse the translation files into the proper format to import into the database.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not a database?