← Back
Editing: _process_cli.cpython-311.pyc
� �@�c� � �@ � d Z ddlZddlZddlZddlmZ d� Zd� Zd� ZdS )a� cli-specific implementation of process utilities. cli - Common Language Infrastructure for IronPython. Code can run on any operating system. Check os.name for os- specific settings. This file is only meant to be imported by process.py, not by end-users. This file is largely untested. To become a full drop-in process interface for IronPython will probably require you to help fill in the details. � N� )� arg_splitc �� � t j � | � � }d|_ d|_ t j j j |_ d|_ t j j � |� � }dS )zY system(cmd) should work in a cli environment on Mac OSX, Linux, and Windows TFN)�System�Diagnostics�ProcessStartInfo�RedirectStandardOutput�RedirectStandardError�ProcessWindowStyle�Normal�WindowStyle�UseShellExecute�Process�Start)�cmd�psi�regs �</usr/lib/python3/dist-packages/IPython/utils/_process_cli.py�systemr s_ � � � � -� -�c� 2� 2�C�!%�C�� $�C���(�;�B�C�O��C�� � � $� *� *�3� /� /�C�C�C� c �X � t j � | � � }d|_ d|_ t j j j |_ d|_ t j j � |� � }|j }|� � � }|j }|� � � }|S )z\ getoutput(cmd) should work in a cli environment on Mac OSX, Linux, and Windows TF)r r r r r r r r r r r �StandardOutput� ReadToEnd� StandardError)r r r �myOutput�output�myError�errors r � getoutputr &