6.10.7. The process frame

6.10.7. The process frame

The _process frame_ contains data configuring a particular processing run. That data is gleaned from command line switches, the environment, defaults from other frames, and statistics gathered during processing, and also some data configured by user commands in input files.

User commands may read symbols from this dictionary, and may modify the objects to which the symbol names refer, but are protected from rebinding the names to other objects or values.

The organisation of the process frame is currently haphazard and may change from version to version.

Make an object to hold global variables that user objects can hang onto, to ensure these variables live during the execution of the object destructors.

Start python section to interscript/frames/processf.py[1]
     1: #line 22 "process_frame.ipk"
     2: from interscript.frames.site import site_frame
     3: from interscript.frames.platform import platform_frame
     4: from interscript.frames.masterf import master_frame
     5: from interscript.drivers.sources.base import eoi
     6: 
     7: import traceback
     8: 
     9: class process_frame:
    10:   def __init__(self, global_frame, process_options, argument_frames):
    11:     self.global_frame = global_frame
    12:     self.process_options = process_options
    13:     self.argument_frames = argument_frames
    14: 
    15:     self.break_on_error = 0
    16:     self.debug_constructors = 0
    17:     self.debug_destructors = 0
    18:     self.verbosity = process_options.verbosity
    19:     self.update_files = 1
    20: 
    21:     plat = platform_frame()
    22:     self.site_frame = site_frame(plat)
    23:     # self.site_frame.print_install()
    24: 
    25:   def run(self):
    26:     for argument_frame in self.argument_frames:
    27:       master_frame(self,argument_frame)
    28: 
    29:   def get_process_frame(self): return self
    30: 
End python section to interscript/frames/processf.py[1]


6.10.7.1. Execute Python Script