import os if not os.path.exists(path): with open(path, 'w'):
import os if not os.path.exists("PATH"): with open("PATH", "w"): pass
f = open(file, "w")