os.path.isfile with *.tar.gz

2007-03-15 Thread Boudreau, Emile
Hello All, I'm new to Python and it looks like people that post here do get a good answer back so I figured I'd try my luck. I'm trying to check a directory to see if there is a file that has the name "startOfString" + some version number + "inst.tar.gz" (component-8.3.16-inst.tar.gz) The

Re: os.path.isfile with *.tar.gz

2007-03-15 Thread Steve Holden
Boudreau, Emile wrote: > Hello All, > I'm new to Python and it looks like people that post here do get > a good answer back so I figured I'd try my luck. > > I'm trying to check a directory to see if there is a file that has the > name "startOfString" + some version number + "inst.tar.gz

Re: os.path.isfile with *.tar.gz

2007-03-15 Thread Tim Golden
Boudreau, Emile wrote: > Hello All, > I'm new to Python and it looks like people that post here do get > a good answer back so I figured I'd try my luck. > > I'm trying to check a directory to see if there is a file that has the > name "startOfString" + some version number + "inst.tar.gz

Re: os.path.isfile with *.tar.gz

2007-03-15 Thread Bruno Desthuilliers
> Boudreau, Emile wrote: (snip) >> I have tried variations of: os.path.isfile( os.path.join("C:\\temp\\", >> "rqp-win32-app", "*.tar.gz")) As a side note, the whole point of os.path is to help writing portable code. So passing an os.specific path componant is somewhat counter productive !-) (s