How to use the munch.ITModule function in munch

To help you get started, we’ve selected a few munch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github iamgreaser / it2everything / munch.py View on Github external
s = "MUNCH*PY|"
		for v in self.mask:
			if v == None:
				fp.write(s[0])
				s = s[1:] + s[0]
			else:
				fp.write(chr(v))
		
		fp.close()

if len(sys.argv) <= 2:
	print "usage:\n\tpython munch.py infile.it outfile.it"
	exit()

module = ITModule(sys.argv[1])
module.save(sys.argv[2])