Searched refs:popen (Results 1 - 25 of 213) sorted by relevance

123456789

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_popen.py2 """Basic tests for os.popen()
4 Particularly useful for platforms that fake popen.
21 data = os.popen(cmd).read() + '\n'
26 self.assertRaises(TypeError, os.popen)
42 self.assertEqual(os.popen("exit 0").close(), None)
44 self.assertEqual(os.popen("exit 42").close(), 42)
46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
H A Dtest_popen2.py7 warnings.filterwarnings("ignore", "os\.popen. is deprecated.*",
23 # if we don't have os.popen, check that
27 from os import popen namespace
28 del popen
54 # The os.popen*() API delegates to the subprocess module (on Unix)
86 # same test as test_popen2(), but using the os.popen*() API
99 # same test as test_popen3(), but using the os.popen*() API
H A Dtest_select.py33 p = os.popen(cmd, 'r')
H A Dtest_unicodedata.py234 popen = subprocess.Popen(args, stderr=subprocess.PIPE)
235 popen.wait()
236 self.assertEqual(popen.returncode, 1)
239 self.assertIn(error, popen.stderr.read())
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_popen.py2 """Basic tests for os.popen()
4 Particularly useful for platforms that fake popen.
21 data = os.popen(cmd).read() + '\n'
26 self.assertRaises(TypeError, os.popen)
42 self.assertEqual(os.popen("exit 0").close(), None)
44 self.assertEqual(os.popen("exit 42").close(), 42)
46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
H A Dtest_popen2.py7 warnings.filterwarnings("ignore", "os\.popen. is deprecated.*",
23 # if we don't have os.popen, check that
27 from os import popen namespace
28 del popen
54 # The os.popen*() API delegates to the subprocess module (on Unix)
86 # same test as test_popen2(), but using the os.popen*() API
99 # same test as test_popen3(), but using the os.popen*() API
H A Dtest_select.py33 p = os.popen(cmd, 'r')
H A Dtest_unicodedata.py234 popen = subprocess.Popen(args, stderr=subprocess.PIPE)
235 popen.wait()
236 self.assertEqual(popen.returncode, 1)
239 self.assertIn(error, popen.stderr.read())
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/
H A Dutil.py112 f = os.popen(cmd)
137 f = os.popen(cmd)
153 f = os.popen(cmd)
158 f = os.popen(cmd)
186 f = os.popen('/sbin/ldconfig -r 2>/dev/null')
208 for line in os.popen(cmd).readlines():
245 f = os.popen('/sbin/ldconfig -p 2>/dev/null')
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/
H A Dutil.py112 f = os.popen(cmd)
137 f = os.popen(cmd)
153 f = os.popen(cmd)
158 f = os.popen(cmd)
186 f = os.popen('/sbin/ldconfig -r 2>/dev/null')
208 for line in os.popen(cmd).readlines():
245 f = os.popen('/sbin/ldconfig -p 2>/dev/null')
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
H A Dcommands.py1 """Execute shell commands via os.popen() and return status, output.
15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
H A Dplatform.py59 # 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): function
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
[all...]
H A Dmimetools.py225 pipe = os.popen(command, 'w')
234 pipe = os.popen(command + ' <' + tempname, 'r')
H A Dpipes.py53 for the built-in function open() or for os.popen().
171 return os.popen(cmd, 'r')
180 return os.popen(cmd, 'w')
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib-tk/test/test_tkinter/
H A Dtest_loadtk.py34 display = os.popen('echo $DISPLAY').read().strip()
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A Dcommands.py1 """Execute shell commands via os.popen() and return status, output.
15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
H A Dplatform.py59 # 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): function
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
[all...]
H A Dmimetools.py225 pipe = os.popen(command, 'w')
234 pipe = os.popen(command + ' <' + tempname, 'r')
H A Dpipes.py53 for the built-in function open() or for os.popen().
171 return os.popen(cmd, 'r')
180 return os.popen(cmd, 'w')
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/test/test_tkinter/
H A Dtest_loadtk.py34 display = os.popen('echo $DISPLAY').read().strip()
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/
H A Dcygwinccompiler.py448 out = os.popen(gcc_exe + ' -dumpversion','r')
456 out = os.popen(gcc_exe + ' --print-prog-name ld','r')
462 out = os.popen(ld_exe + ' -v','r')
474 out = os.popen(dllwrap_exe + ' --version','r')
H A Dmsvc9compiler.py273 popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch),
277 stdout, stderr = popen.communicate()
278 if popen.wait() != 0:
295 popen.stdout.close()
296 popen.stderr.close()
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/
H A Dcygwinccompiler.py448 out = os.popen(gcc_exe + ' -dumpversion','r')
456 out = os.popen(gcc_exe + ' --print-prog-name ld','r')
462 out = os.popen(ld_exe + ' -v','r')
474 out = os.popen(dllwrap_exe + ' --version','r')
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/
H A D__init__.py123 with os.popen(comm) as p:
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/
H A D__init__.py123 with os.popen(comm) as p:

Completed in 533 milliseconds

123456789