shutil module (directory input)

klia alwaseem307ster at yahoo.com
Mon Jan 26 22:48:05 EST 2009


hello folks

i am trying to tweak the current codes so that later when i call it from the
terminal i can provide sourcefile and the destination file rather being
fixed in the code.becuase now i have to specify the sourcefile and the
destinationfile in codes and not left to be specified from the terminal. i
want to be able to do this.

python shutil_copy.py sourcefile, destinationfile

code
import shutil
shutil.copyfile(srcfile, dstfile) # copy data only

-- 
View this message in context: http://www.nabble.com/shutil-module-%28directory-input%29-tp21679178p21679178.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list