관리-도구
편집 파일: dotnet.cpython-38.pyc
U ,�e� � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl mZ d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ d d lmZ d ZdZejZejZejZdd d�dd�Zejdddd�dd��Zejdd�dd��Z ddddd�dd�Z!dS )� )�annotationsN)� Generator)�Sequence)� lang_base)� envcontext)�PatchesT)�Var)�PrefixZ dotnetenv�bin�strr )�venv�returnc C s dt j�| t�t jtd�fffS )N�PATH)�os�path�join�BIN_DIR�pathsepr )r � r �I/opt/hc_python/lib/python3.8/site-packages/pre_commit/languages/dotnet.py� get_env_patch s �r r zGenerator[(None, None, None)])�prefix�versionr c c s0 t �| t|�}tt|��� d V W 5 Q R X d S )N)r �environment_dir�ENVIRONMENT_DIRr r )r r �envdirr r r �in_env s r zGenerator[str, None, None])r c c sL t �� �:} tj�| d�}t|d��}|�d� W 5 Q R X |V W 5 Q R X d S )Nznuget.config�wzw<?xml version="1.0" encoding="utf-8"?><configuration> <packageSources> <clear /> </packageSources></configuration>)�tempfile�TemporaryDirectoryr r r �open�write)Ztmpdir�nuget_config�fr r r �_nuget_config_no_sources'