| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
}�eV � �� � d Z ddlZddlZddlZej dk( r
ddlmZmZmZm Z n(ej dk( r
ddl
mZmZmZm Z nddlmZmZmZm Z ddlm
Z
mZmZ G d� d e� Zd
� Zd� Zy)z0
Utilities for working with external processes.
� N�win32� )�system� getoutput� arg_split� check_pid�cli)�getoutputerror�get_output_error_code�process_handlerc � � e Zd Zy)�FindCmdErrorN)�__name__�
__module__�__qualname__� � �7/usr/lib/python3/dist-packages/IPython/utils/process.pyr r s � �r r c �P � t j | � }|�t d| z � �|S )a� Find absolute path to executable cmd in a cross platform manner.
This function tries to determine the full path to a command line program
using `which` on Unix/Linux/OS X and `win32api` on Windows. Most of the
time it will use the version that is first on the users `PATH`.
Warning, don't use this to find IPython command line programs as there
is a risk you will find the wrong one. Instead find those using the
following code and looking for the application itself::
import sys
argv = [sys.executable, '-m', 'IPython']
Parameters
----------
cmd : str
The command line program to look for.
zcommand could not be found: %s)�shutil�whichr )�cmd�paths r �find_cmdr s- � �&