Your IP : 18.220.110.45
3
�Pf� �
@ s d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
mZ ddlm
Z
mZ ddlmZ ejd�Zd Zd
Zdd� Zd
d� Zdd� Ze� r�ejjejd�Zn6yejjej� d�ZW n ek
r� ejd� Y nX ejje�Zej � Z!ej"Z#ed�Z$e
�rtejjejd�Z%ejje#d�Z&ejj'e%��sRejjejd�Z%ejje#d�Z&dZ(ejje$d�Z)ejje)e(�Z*njejjejd�Z%ejje#d�Z&dZ(ejje$d�Z)ejje)e(�Z*ej+dd� dk�r�ejdd� dk�r�dZ%dd� ej,d�D �Z-d#d!d"�Z.dS )$z7Locations where we look for configs, install stuff, etc� )�absolute_importN)� sysconfig)�install�SCHEME_KEYS)�WINDOWS�
expanduser)�appdirsZpipz�This file is placed here by pip to indicate the source was put
here by pip.
Once this package is successfully installed this source code will be
deleted (unless you remove this file).
zpip-delete-this-directory.txtc C s2 t jj| t�}t|d��}|jt� W dQ R X dS )z?
Write the pip delete marker file into this directory.
�wN)�os�path�join�PIP_DELETE_MARKER_FILENAME�open�write�DELETE_MARKER_MESSAGE)Z directory�filepathZ marker_fp� r �/usr/lib/python3.6/locations.py�write_delete_marker_file s r c C s* t td�rdS tjttdtj�kr&dS dS )zM
Return True if we're running inside a virtualenv, False otherwise.
Zreal_prefixT�base_prefixF)�hasattr�sys�prefix�getattrr r r r �running_under_virtualenv'