Home | History | Annotate | Download | only in python2.7

Lines Matching defs:popen

59 #    0.5.3 - added experimental MacOS support; added better popen()
66 # to cover up situations where platforms don't have os.popen
76 # 0.3.3 - fixed popen() and "file" command invokation bugs
367 """ Fairly portable (alternative) popen implementation.
369 This is mostly needed in case os.popen() is not available, or
384 raise ValueError,'popen()-emulation only supports read mode'
419 def popen(cmd, mode='r', bufsize=None):
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
424 # over os.popen over _popen
425 popen = None
434 popen = win32pipe.popen
435 if popen is None:
436 if hasattr(os,'popen'):
437 popen = os.popen
442 popen('')
444 popen = _popen
446 popen = _popen
448 return popen(cmd,mode)
450 return popen(cmd,mode,bufsize)
502 pipe = popen(cmd)
1008 f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
1053 proc = subprocess.Popen(['file', target],