Re: python os.path.exists failure

2009-11-04 Thread Aahz
In article <9aaf6a31-a34e-454b-a8f0-e206ad9b7...@t2g2000yqn.googlegroups.com>, koranthala wrote: > >path = r'C:/"Program Files"/testfolder/2.3/test.txt' >if os.path.lexists(path): >print 'Path Exists' >else: >print 'No file found in path - %s' %path >print Popen(path, stdout=PIPE, shell=T

Re: python os.path.exists failure

2009-11-01 Thread Roel Schroeven
koranthala schreef: > Hi all, >My code is as follows: > > path = r'C:/"Program Files"/testfolder/2.3/test.txt' > if os.path.lexists(path): > print 'Path Exists' > else: > print 'No file found in path - %s' %path > print Popen(path, stdout=PIPE, shell=True).stdout.read() > > The output

Re: python os.path.exists failure

2009-10-31 Thread Benjamin Kaplan
On Sat, Oct 31, 2009 at 11:26 AM, koranthala wrote: > Hi all, >   My code is as follows: > > path = r'C:/"Program Files"/testfolder/2.3/test.txt' > if os.path.lexists(path): >    print 'Path Exists' > else: >    print 'No file found in path - %s' %path > print Popen(path, stdout=PIPE, shell=True).