Ë wL iÆãó—dZddlZddlZddlZejdk(r ddlmZmZmZm Z nDejdk(r ddl mZmZmZm Z n(ejdk(r ddl mZmZmZm Z n ddl mZmZmZm Z ddl mZmZmZGd „d e«Zd „Zd „Zy) z0 Utilities for working with external processes. éNÚwin32é)ÚsystemÚ getoutputÚ arg_splitÚ check_pidÚcliÚ emscripten)ÚgetoutputerrorÚget_output_error_codeÚprocess_handlercó —eZdZy)Ú FindCmdErrorN)Ú__name__Ú __module__Ú __qualname__©óú[/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/IPython/utils/process.pyrrs„ØrrcóP—tj|«}|€td|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_cmdrs-€ô& <‰<˜Ó €DØ €|ÜÐ;¸cÑAÓBÐBØ €Krcób—tj«jdd«}d}|}tjdk(r2t |«dkr|Stj j|«\}}|jd«}t |«dkDrdj|dd«}||dk(xrdxs|zS) z1 Return abbreviated version of cwd, e.g. d:mydir ú\ú/ÚréééþÿÿÿN) ÚosÚgetcwdÚreplaceÚsysÚplatformÚlenrÚ splitdriveÚsplitÚjoin)ÚcwdÚ drivepartÚtailÚpartss rÚ abbrev_cwdr07s¤€ä )‰)‹+× Ñ ˜d 3Ó '€CØ€IØ €DÜ ‡||wÒÜ ˆs‹8aŠ<؈JÜŸ™×+Ñ+¨CÓ0‰ˆ $ð J‰Js‹O€EÜ ˆ5ƒzA‚~Øx‰x˜˜b˜c˜ Ó#ˆà Ø ˆs‰ ÒsÒ"˜dñ $ð%r)Ú__doc__r#rr&r'Ú_process_win32rrrrÚ _process_cliÚ_process_emscriptenÚ_process_posixÚ_process_commonr r r Ú Exceptionrrr0rrrúr8smðñó Û Û à‡<<7ÒßGÔG؇\\UÒßEÔE؇\\\Ò!ßLÔLçGÓGçSÑSô 9ô òó2%r