windows 7, python 2.7.2
The following runs w/o error:
from subprocess import call f = open("file1","w") f.writelines("sigh") f.flush f.close call("copy file1 + file2 file3", shell=True) However, file3 only contains the contents of file2. Both file1 and file2 names are echoed as is normal for windows, but, file1 appears to be empty when the copy is called. It seems as if file1 has not been completely written and flushed. If file1 has been created separately, as opposed to within the same python file, the following runs as expected:
from subprocess import call call("copy file1 + file2 file3", shell=True) Sorry if python newbieness is to be blamed here. Many thx for any assist.