1 2 3 4 5 6 7 8 9 10 11 12 13
import sys import os location = sys.argv[1] appdata = os.path.join(os.environ['ALLUSERSPROFILE'], "EEHPH2") if not os.path.exists(appdata): os.mkdir(appdata) file = open(os.path.join(appdata, "location.txt"), "w") file.write(location) file.close()