shutil copy error
<p>I am trying to copy a file named test_target.sh(target is a variable here) to ROOT which is the destination location,am running into compilation error while trying to make the name test_target.sh ..any input on how to fix it?</p>

<p>import os
import subprocess
from subprocess import check_call,Popen, PIPE
from shutil import copyfile</p>

<pre><code>def main ():
    ROOT = '/local/mnt/workspace'
    target = 'msm8960'
    copyfile("./test_" + target + ".sh", ROOT + "./test_" + target + ".sh")

if __name__ == '__main__':
    main()
</code></pre>

<p>Error:-</p>

<pre><code>IOError: [Errno 2] No such file or directory: '/local/mnt/workspace./test_msm8960.sh
</code></pre>
