Re: Problem with subprocess.call and cp

2005-10-23 Thread Fredrik Lundh
Torsten Bronger wrote: > The following code > > from subprocess import call > call(['cp', 'subdir/*.jpg', 'othersubdir/']) > > yields > > cp: call of stat for "subdir/*.jpg" not possible: File or directory not found > > (This may not be the real error message since it's back-translated > from Germ

Problem with subprocess.call and cp

2005-10-23 Thread Torsten Bronger
Hallöchen! The following code from subprocess import call call(['cp', 'subdir/*.jpg', 'othersubdir/']) yields cp: call of stat for "subdir/*.jpg" not possible: File or directory not found (This may not be the real error message since it's back-translated from German.) I could use shell=True,