In article <[email protected]>, koranthala <[email protected]> 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=True).stdout.read()
Avoiding shell=True is a Good Idea -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ [on old computer technologies and programmers] "Fancy tail fins on a brand new '59 Cadillac didn't mean throwing out a whole generation of mechanics who started with model As." --Andrew Dalke -- http://mail.python.org/mailman/listinfo/python-list
