Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
virtualenv
/
create
/
via_global_ref
/
builtin
/
__pycache__
[ HOME ]
Exec
Submit
ref.cpython-37.pyc
B ���ae � @ s� d Z ddlmZmZ ddlZddlmZmZ ddlm Z ddl mZmZm Z ddlmZ ddlmZmZ dd lmZmZmZ dd lmZ G dd� de�ZG d d� de�Zee�G dd� de��Zee�G dd� de��ZG dd� de�ZG dd� dee�ZdS )aG Virtual environments in the traditional sense are built as reference to the host python. This file allows declarative references to elements on the file system, allowing our system to automatically detect what modes it can support given the constraints: e.g. can the file system symlink, can the files be read, executed, etc. � )�absolute_import�unicode_literalsN)�ABCMeta�abstractmethod)�OrderedDict)�S_IXGRP�S_IXOTH�S_IXUSR)� add_metaclass)�fs_is_case_sensitive�fs_supports_symlink)�copy�make_exe�symlink)�ensure_textc @ s e Zd ZdZdZdZdS )�RefMust�NAr r N)�__name__� __module__�__qualname__r �COPY�SYMLINK� r r �]/opt/alt/python37/lib/python3.7/site-packages/virtualenv/create/via_global_ref/builtin/ref.pyr s r c @ s e Zd ZdZdZdZdS )�RefWhen�ANYr r N)r r r r r r r r r r r s r c @ sn e Zd ZdZe� Ze� Zej e jfdd�Zdd� Z edd� �Zedd � �Zed d� �Zedd � �Zdd� ZdS )�PathRefz@Base class that checks if a file reference can be symlink/copiedc C sp || _ || _|| _y|�� | _W n tk r: d| _Y nX | jrFd nd| _| jrVd nd| _| jrfd nd| _d S )NF)�must�when�src�exists�OSError� _can_read� _can_copy�_can_symlink)�selfr r r r r r �__init__'