> Cheers for the critique I'll take you points on board .especially
> this schoolboy error
It's not an error, really. It will work. Just... not intuitive
Errors are things that do not work.
> One thing to note about the re expression is that the products are not
> these were just substitutes
ssage: 3
Date: Tue, 24 Jul 2007 14:18:46 -0500
From: "Tiger12506" <[EMAIL PROTECTED]>
Subject: Re: [Tutor] Text matching and replacing
To:
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
def findTestDirectories(path):
os.chdir(path)
directory_listing = os.listdir(os.getcwd())
--
Change this to
directory_listing = os.listdir(path)
Why look up the current directory when you have *just* set what it is?
test_record_directories = []
fo