copying files

Brian McCann Brian.McCann at
Wed Aug 29 20:46:03 CEST 2007

<mailto:brian.mccann at> 
one thing I just noticed is that when I run the script I get a new symbolic link
created in my current dir  TEST_HOME------>lib


From: at on behalf of Brian McCann
Sent: Wed 8/29/2007 2:40 PM
To: python-list at
Subject: copying files 

with the code below I set a variable TEST_HOME to a path and the variable m to a path
in my current dir. 
I have a symbolic link setting m---->lib
when I run the script I get no errors and the lib dir with its 20 files does not get copied to /v01/test_home
any help would be greatly appreciated

import string
import os
import sys
import errno
import shutil
import tarfile
TEST_HOME = "/v01/test_home"
m = "./lib"
os.system("cp -r m TEST_HOME")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list