Re: Using wildcards with Popen in the Subprocess module

2007-03-16 Thread Sion Arrowsmith
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 Popen

Using wildcards with Popen in the Subprocess module

2007-03-15 Thread William Hudspeth
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

Re: Using wildcards with Popen in the Subprocess module

2007-03-15 Thread kyosohma
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 wildcard

Re: Using wildcards with Popen in the Subprocess module

2007-03-15 Thread Fabio FZero
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 of the

Re: Using wildcards with Popen in the Subprocess module

2007-03-15 Thread William Hudspeth
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

Using wildcards...

2005-05-02 Thread Harlin Seritt
I looked all over the net but could not find if it is possible to insert wildcards into strings. What I am trying to do is this: I am trying to parse text from a Bible file. In case you're not familiar with the way the Bible organizes itself, it is broken down into Books Chapters Verses. The

Re: Using wildcards...

2005-05-02 Thread Roel Schroeven
Harlin Seritt wrote: I looked all over the net but could not find if it is possible to insert wildcards into strings. What I am trying to do is this: I am trying to parse text from a Bible file. In case you're not familiar with the way the Bible organizes itself, it is broken down into Books

Re: Using wildcards...

2005-05-02 Thread Kent Johnson
Harlin Seritt wrote: I looked all over the net but could not find if it is possible to insert wildcards into strings. What I am trying to do is this: I am trying to parse text from a Bible file. In case you're not familiar with the way the Bible organizes itself, it is broken down into Books

Re: Using wildcards...

2005-05-02 Thread George Yoshida
Harlin Seritt wrote: {1:1} Random text here. {1:2} More text here. and so on. Of course the {*} can be of any length, so I can't just do .split() based on the length of the bracket text. What I would like to do is to .split() using something akin to this: textdata.split('{*}') # The '*'

Re: Using wildcards...

2005-05-02 Thread Harlin Seritt
George that is what I'm looking for. Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list