import variables buildscript = open("build.sh","w") buildscript.write("#!/usr/bin/env bash\n\npython3 generate.py\n\nrclone copy build " + variables.servername + ":" + variables.serverpath + " -P") buildscript.close() if not os.path.exists("build/user.css"): open("build/user.css","x")