관리-도구
편집 파일: __init__.cpython-37.pyc
B ���a� � @ sx d Z ddlmZmZ ddlZddlZddlmZ ddlm Z ddl mZ ddlm Z dd lmZ d d� Zdd � ZdZdS )z( Application data stored by virtualenv. � )�absolute_import�unicode_literalsN)� user_data_dir� )�AppDataDisabled)�ReadOnlyAppData)�AppDataDiskFolder)�TempAppDatac C s( t d�}|| kr| | S tddd�S d S )NZVIRTUALENV_OVERRIDE_APP_DATAZ virtualenvZpypa)�appname� appauthor)�strr )�env�key� r �M/opt/alt/python37/lib/python3.7/site-packages/virtualenv/app_data/__init__.py�_default_app_data_dir s r c K s� |� d�}|� d�}|r td��| d kr0t|�} tj�| �} |rHt| �S tj�| �s�yt�| � t � d| � W n0 tk r� } zt �d| |� W d d }~X Y nX t� | tj�r�t| �S t � d| � t� S d S )N� read_onlyr zunexpected keywords: {}zcreated app data folder %sz-could not create app data folder %s due to %rz&app data folder %s has no write access)�pop� TypeErrorr �os�path�abspathr �isdir�makedirs�logging�debug�OSError�info�access�W_OKr r )Zfolder�kwargsr r � exceptionr r r � make_app_data s&