Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- filenames = os.listdir("./")
- with open("./merged.gaml", 'w') as outfile:
- outfile.write("model MergedModel")
- for fname in filenames:
- if ".gaml" in fname:
- with open("./"+fname) as infile:
- for line in infile:
- if (not "model" in line) and (not "import" in line):
- outfile.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement