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

Public Member Functions

def best (cls)
 
def from_param (cls, param)
 
def from_environment (cls)
 
def from_string (cls, string)
 
def install_options (self, script_text)
 
def as_header (self)
 

Static Public Attributes

 options
 
 split_args
 

Detailed Description

A command spec for a #! header, specified as a list of arguments akin to
those passed to Popen.

Member Function Documentation

◆ as_header()

def as_header (   self)

◆ best()

def best (   cls)
Choose the best CommandSpec class based on environmental conditions.

◆ from_environment()

def from_environment (   cls)

◆ from_param()

def from_param (   cls,
  param 
)
Construct a CommandSpec from a parameter to build_scripts, which may
be None.

◆ from_string()

def from_string (   cls,
  string 
)
Construct a command spec from a simple string representing a command
line parseable by shlex.split.

◆ install_options()

def install_options (   self,
  script_text 
)

Field Documentation

◆ options

options
static

◆ split_args

split_args
static

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