Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/core/magics/__pycache__/script.cpython-39.pyc
Ðазад
a o�h�0 � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddlmZ ddl mZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZ dd lmZ d d� ZeG dd � d e��ZdS )z5Magic functions for running cells in various scripts.� N)�CalledProcessError)�Thread)�Any�Dict�List�default)�magic_arguments)� _AsyncIOProxy)�Magics� cell_magic� line_magic�magics_class)� arg_splitc C sb t jdtdd�t jdtdd�t jdddd �t jd tdd�t jdd ddd�g}|D ]}|| �} qP| S )z'single decorator for adding script argsz--outz�The variable in which to store stdout from the script. If the script is backgrounded, this will be the stdout *pipe*, instead of the stderr text itself and will not be auto closed. )�type�helpz--errz�The variable in which to store stderr from the script. If the script is backgrounded, this will be the stderr *pipe*, instead of the stderr text itself and will not be autoclosed. z--bg� store_truez�Whether to run the script in the background. If given, the only way to see the output of the command is with --out/err. )�actionr z--procztThe variable in which to store Popen instance. This is used only when --bg option is given. z--no-raise-error�store_false�raise_errorz�Whether you should raise an error message in addition to a stream on stderr if you get a nonzero exit code. )r �destr )r �argument�str)�f�args�arg� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/core/magics/script.py�script_args s0 ������# r c s� e Zd ZdZedd�Zedd�jdd�Ze d�dd � �Z ed d�jdd�Zd"� fdd � Z dd� Zdd� Zdd� Ze�� eed�dd� ���Zejdke_dd� Zed�d#dd��Zdd� Zd d!� Z� ZS )$�ScriptMagicsz�Magics for talking to scripts This defines a base `%%script` cell magic for running a cell with a program in a subprocess, and registers a few top-level magics that call %%script with common interpreters. z� The event loop on which to run subprocesses Not the main event loop, because we want to be able to make blocking calls and have certain requirements we don't want to impose on the main loop. )r z�Extra script cell magics to define This generates simple wrappers of `%%script foo` as `%%foo`. If you want to add script magics that aren't on your path, specify them in script_paths T)�config� script_magicsc C s"