<filename>air motor simulartor/Revert to backup.py
path = "D:/air motor/airmotorbackup/airmotorbackup.ino"
original = open(path, "r")
o_code = original.readlines()
original.close()
replacement = open("D:/air motor/air_motor_rpm/air_motor_rpm.ino","w")
replacement.writelines(o_code)
replacement.close()
print("done")
<filename>air motor simulartor/Revert to backup.py
path = "D:/air motor/airmotorbackup/airmotorbackup.ino"
original = open(path, "r")
o_code = original.readlines()
original.close()
replacement = open("D:/air motor/air_motor_rpm/air_motor_rpm.ino","w")
replacement.writelines(o_code)
replacement.close()
print("done")