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

Public Member Functions

def get_script_args (cls, dist, executable=None, wininst=False)
 
def get_script_header (cls, script_text, executable=None, wininst=False)
 
def get_args (cls, dist, header=None)
 
def get_writer (cls, force_windows)
 
def best (cls)
 
def get_header (cls, script_text="", executable=None)
 

Static Public Attributes

 template
 
 command_spec_class
 

Detailed Description

Encapsulates behavior around writing entry point scripts for console and
gui apps.

Member Function Documentation

◆ best()

def best (   cls)
Select the best ScriptWriter for this environment.

Reimplemented in WindowsScriptWriter.

◆ get_args()

def get_args (   cls,
  dist,
  header = None 
)
Yield write_script() argument tuples for a distribution's
console_scripts and gui_scripts entry points.

◆ get_header()

def get_header (   cls,
  script_text = "",
  executable = None 
)
Create a #! line, getting options (if any) from script_text

◆ get_script_args()

def get_script_args (   cls,
  dist,
  executable = None,
  wininst = False 
)

◆ get_script_header()

def get_script_header (   cls,
  script_text,
  executable = None,
  wininst = False 
)

◆ get_writer()

def get_writer (   cls,
  force_windows 
)

Field Documentation

◆ command_spec_class

command_spec_class
static

◆ template

template
static

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