import os
import buildFirefox
import buildChrome

os.chdir(os.path.dirname(os.path.abspath(__file__)))
buildFirefox.run()
buildChrome.run()
import os
import buildFirefox
import buildChrome

os.chdir(os.path.dirname(os.path.abspath(__file__)))

filenames = ['header.js', 'guild_page.js', 'core.js']
with open('tgarmory.js', 'w') as outfile:
    for fname in filenames:
        with open(fname) as infile:
            outfile.write(infile.read())

buildFirefox.run()
buildChrome.run()
Prepare for file concat build system
Prepare for file concat build system

  import os
  import buildFirefox
  import buildChrome
  
  os.chdir(os.path.dirname(os.path.abspath(__file__)))
+ 
+ filenames = ['header.js', 'guild_page.js', 'core.js']
+ with open('tgarmory.js', 'w') as outfile:
+     for fname in filenames:
+         with open(fname) as infile:
+             outfile.write(infile.read())
+ 
  buildFirefox.run()
  buildChrome.run()
Prepare for file concat build system
## Code Before:
import os
import buildFirefox
import buildChrome

os.chdir(os.path.dirname(os.path.abspath(__file__)))
buildFirefox.run()
buildChrome.run()
## Instruction:
Prepare for file concat build system
## Code After:
import os
import buildFirefox
import buildChrome

os.chdir(os.path.dirname(os.path.abspath(__file__)))

filenames = ['header.js', 'guild_page.js', 'core.js']
with open('tgarmory.js', 'w') as outfile:
    for fname in filenames:
        with open(fname) as infile:
            outfile.write(infile.read())

buildFirefox.run()
buildChrome.run()