Created
July 30, 2019 10:00
-
-
Save aninternetian/45c0142b08b9c97f2e75e7588ea7a320 to your computer and use it in GitHub Desktop.
some kinda magic
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
import sys | |
obj_name = sys.argv[2] | |
with open(sys.argv[1]) as f: | |
xml_string = f.read() | |
xml_string = xml_string.replace('change', obj_name) | |
with open('output-' + sys.argv[1], 'w') as f: | |
f.write(xml_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment