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

Public Member Functions

def __init__ (self, source_dir, target_dir, add_launchers=True, dry_run=False, fileop=None)
 
def get_manifest (self, exename)
 
def dry_run (self)
 
def dry_run (self, value)
 
def make (self, specification, options=None)
 
def make_multiple (self, specifications, options=None)
 

Data Fields

 source_dir
 
 target_dir
 
 add_launchers
 
 force
 
 clobber
 
 set_mode
 
 variants
 
 version_info
 

Static Public Attributes

 script_template
 
 executable
 
 manifest
 

Detailed Description

A class to copy or create scripts from source scripts or callable
specifications.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  source_dir,
  target_dir,
  add_launchers = True,
  dry_run = False,
  fileop = None 
)

Member Function Documentation

◆ dry_run() [1/2]

def dry_run (   self)

◆ dry_run() [2/2]

def dry_run (   self,
  value 
)

◆ get_manifest()

def get_manifest (   self,
  exename 
)

◆ make()

def make (   self,
  specification,
  options = None 
)
Make a script.

:param specification: The specification, which is either a valid export
              entry specification (to make a script from a
              callable) or a filename (to make a script by
              copying from a source location).
:param options: A dictionary of options controlling script generation.
:return: A list of all absolute pathnames written to.

Reimplemented in PipScriptMaker.

◆ make_multiple()

def make_multiple (   self,
  specifications,
  options = None 
)
Take a list of specifications and make scripts from them,
:param specifications: A list of specifications.
:return: A list of all absolute pathnames written to,

Field Documentation

◆ add_launchers

add_launchers

◆ clobber

clobber

◆ executable

executable
static

◆ force

force

◆ manifest

manifest
static

◆ script_template

script_template
static

◆ set_mode

set_mode

◆ source_dir

source_dir

◆ target_dir

target_dir

◆ variants

variants

◆ version_info

version_info

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