William Hudspeth <[EMAIL PROTECTED]> wrote:
> [ ... ] I need to pass multiple filenames to an
>executable. The filenames are similar to one another, but differ only
>slightly, hence the use of the wildcard. The executable works well from
>the command line if I pass in a wildcard filename, but Pope
Hello Mike,
Thanks for responding. I need to pass multiple filenames to an
executable. The filenames are similar to one another, but differ only
slightly, hence the use of the wildcard. The executable works well from
the command line if I pass in a wildcard filename, but Popen can't
expand the wil
You could use glob and expand the resulting list to astring manually,
but you have to make sure the command accepts the "command file1 file2
file3..." format.
FZero
On Mar 15, 4:04 pm, William Hudspeth <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am needing to pass an argument to the Popen function
On Mar 15, 2:04 pm, William Hudspeth <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am needing to pass an argument to the Popen function of the Subprocess
> module that includes a wildcard in the filename. It seems that Popen is
> not able to expand wildcards, and treats a filename that includes a
> wil
Hello,
I am needing to pass an argument to the Popen function of the Subprocess
module that includes a wildcard in the filename. It seems that Popen is
not able to expand wildcards, and treats a filename that includes a
wildcard as a literal.
EX.
var1="/path_to_files/filnames*.doc"
result=Popen