At this point I know my answer is here, I just need a nudge and little more guidance to lead me down the right path. I simply need to shorten this to nothing but one line of code.
When I run the code I get an AttributeError: etc… object has to attribute ‘from_file’???
from os.path import exists
from sys import argv
script, from_file, to_file = argv
if exists(to_file) == True:
open(from_file).from_file.read().open(to_file, 'w').write(from_file).to_file.close().from_file.close()