0

Only copy real js files (not silly editor swap files)

This commit is contained in:
Andrew Chin
2012-02-25 15:57:29 -05:00
parent e4ab4696c9
commit 997ec58161

View File

@@ -149,7 +149,7 @@ directory.
fout.write(f.read())
# now copy in the rest
for js in os.listdir(js_src):
if not js.endswith("overviewer.js"):
if not js.endswith("overviewer.js") and js.endswith(".js"):
with open(os.path.join(js_src,js)) as f:
fout.write(f.read())