How do I copy a file in Python?
I couldn\'t find anything under os.
You could use os.system('cp nameoffilegeneratedbyprogram /otherdirectory/')
os.system('cp nameoffilegeneratedbyprogram /otherdirectory/')
or as I did it,
os.system('cp '+ rawfile + ' rawdata.dat')
where rawfile is the name that I had generated inside the program.
rawfile
This is a Linux only solution