1 2 3 4 5 6 7 8
import sys if (len(sys.argv) > 1): if (sys.argv[1] == "ENONLY"): print("#define ENGLISH_ONLY") else: for x in range(1, len(sys.argv)): print("#define LANG_%s"%(sys.argv[x]))