shutil module (directory input)

James Mills prologic at
Tue Jan 27 04:57:44 CET 2009

On Tue, Jan 27, 2009 at 1:48 PM, klia <alwaseem307ster at> wrote:
> 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 sourcefile, destinationfile
> code
> import shutil
> shutil.copyfile(srcfile, dstfile) # copy data only

Have a look at the documentation for
the sys module.


More information about the Python-list mailing list