Thanks for your help. I knew of a way to solve this issue, but being a C++
programmer I tend to think of the expanded solutions for things. I wasn't
sure if there was a more compact solution for python. Thanks again!
On Mon, Feb 25, 2008 at 11:27 AM, Tim Chase <[EMAIL PROTECTED]>
wrote:
> >> igno
>> ignored_dirs = (
>>r".\boost\include", # It's that comma that makes this a tuple.
>> )
>>
>
> Thanks for reminding me of this. I always forget that!
>
> Now that it is correctly doing *only* whole string matches, what if I want
> to make it do a substring compare to each string in my
On Mon, Feb 25, 2008 at 10:49 AM, Gary Herron <[EMAIL PROTECTED]>
wrote:
>
> You expect this is creating a tuple (or so I see from your "in" test in
> the following code), but in fact the parenthesis do *not* make a tuple.
> If you look at ignored_dirs, you'll find it's just a string. It's the
> p
Robert Dailey wrote:
> Hi,
>
> Currently I have the following code:
>
>
> ignored_dirs = (
> r".\boost\include"
> )
You expect this is creating a tuple (or so I see from your "in" test in
the following code), but in fact the parenthesis do *not* make a tuple.
If you look at ignored_dirs, y
Hi,
Currently I have the following code:
ignored_dirs = (
r".\boost\include"
)
if __name__ == "__main__":
# Walk the directory tree rooted at 'source'
for root, dirs, files in os.walk( source ):
if root not in ignored_dirs:
CopyFiles( root, files, ".dll" )