관리-도구
편집 파일: __init__.cpython-37.pyc
B ���a+ � @ sd d dl mZmZ d dlZd dlZd dlmZ d dlmZ d dl m Z ddlmZ G dd � d e�Z dS ) � )�absolute_import�unicode_literalsN)�OrderedDict)�Path)�ensure_text� )�ViaTemplateActivatorc s0 e Zd Zdd� Z� fdd�Zedd� �Z� ZS )�PythonActivatorc c s t d�V d S )Nzactivate_this.py)r )�self� r �V/opt/alt/python37/lib/python3.7/site-packages/virtualenv/activation/python/__init__.py� templates s zPythonActivator.templatesc sp t t| ��|� �}t� fdd�|jD ��}|jjdkoB|jjjdk}|� t tj� |�� ��|rbdndd�� |S )Nc 3 s( | ] }t j�t|�t� ��d fV qd S )N)�os�path�relpath�str)�.0�i)�dest_folderr r � <genexpr> s z/PythonActivator.replacements.<locals>.<genexpr>�win32r �yes� )Z__LIB_FOLDERS__Z__DECODE_PATH__)�superr �replacementsr Zlibs�interpreter�platform�version_info�major�updater r �pathsep�join�keys)r �creatorr r Zlib_foldersZwin_py2)� __class__)r r r s zPythonActivator.replacementsc C sF | j jjdk}|rBtjd dkr$dnd}tt|�d��|d� �}|S )Nr r � � zutf-8���)r r r �sysr �repr�encode)r# �valueZpy2�startr r r � _repr_unicode s zPythonActivator._repr_unicode)�__name__� __module__�__qualname__r r �staticmethodr- � __classcell__r r )r$ r r s r )� __future__r r r r( �collectionsr Zvirtualenv.util.pathr Zvirtualenv.util.sixr Zvia_templater r r r r r �<module> s