OpenQuizz
Une application de gestion des contenus pédagogiques
PthDistributions Class Reference
Inheritance diagram for PthDistributions:
Collaboration diagram for PthDistributions:

Public Member Functions

def __init__ (self, filename, sitedirs=())
 
def save (self)
 
def add (self, dist)
 
def remove (self, dist)
 
def make_relative (self, path)
 
- Public Member Functions inherited from Environment
def __init__ (self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR)
 
def can_add (self, dist)
 
def scan (self, search_path=None)
 
def __getitem__ (self, project_name)
 
def best_match (self, req, working_set, installer=None, replace_conflicting=False)
 
def obtain (self, requirement, installer=None)
 
def __iter__ (self)
 
def __iadd__ (self, other)
 
def __add__ (self, other)
 

Data Fields

 filename
 
 sitedirs
 
 basedir
 
 paths
 
- Data Fields inherited from Environment
 platform
 
 python
 

Static Public Attributes

 dirty
 

Detailed Description

A .pth file with Distribution paths in it

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filename,
  sitedirs = () 
)

Member Function Documentation

◆ add()

def add (   self,
  dist 
)
Add `dist` to the distribution map

Reimplemented from Environment.

◆ make_relative()

def make_relative (   self,
  path 
)

◆ remove()

def remove (   self,
  dist 
)
Remove `dist` from the distribution map

Reimplemented from Environment.

◆ save()

def save (   self)
Write changed .pth file back to disk

Field Documentation

◆ basedir

basedir

◆ dirty

dirty
static

◆ filename

filename

◆ paths

paths

◆ sitedirs

sitedirs

The documentation for this class was generated from the following file: