Fix version.py

This commit is contained in:
calzoneman 2013-11-04 16:13:27 -06:00
parent 760e14ca01
commit 241b7d1496

View file

@ -42,7 +42,7 @@ with open("package.json", "w") as f:
f.write("".join(pkgbuf)) f.write("".join(pkgbuf))
serbuf = [] serbuf = []
with open("server.js") as f: with open("lib/server.js") as f:
for line in f: for line in f:
m = SERVER.search(line) m = SERVER.search(line)
sb = [] sb = []
@ -69,5 +69,5 @@ with open("server.js") as f:
print("server.js: {} => {}".format(line, "".join(sb))) print("server.js: {} => {}".format(line, "".join(sb)))
else: else:
serbuf.append(line) serbuf.append(line)
with open("server.js", "w") as f: with open("lib/server.js", "w") as f:
f.write("".join(serbuf)) f.write("".join(serbuf))