interrupt.py File Reference

Ctrl-C in a regular console application results in the interrupt of the entire job. More...

Go to the source code of this file.

Functions

def interrupt.interrupt_gams (job)
 

Variables

bool interrupt.non_interactive = False
 
 interrupt.system_directory = None
 
 interrupt.ws = GamsWorkspace(system_directory = system_directory)
 
 interrupt.job = ws.add_job_from_file("circpack.gms")
 
 interrupt.opt = ws.add_options()
 
 interrupt.all_model_types
 
 interrupt.target
 
 interrupt.interrupt_gams
 
 interrupt.args
 
 interrupt.output
 

Detailed Description

Ctrl-C in a regular console application results in the interrupt of the entire job.

GAMS users are used to the fact that Ctrl-C interrupts a solve but then continues with the execution of the remaining GAMS job. The example demonstrates how to alter some console properties to get this behavior of Ctrl-C.

Definition in file interrupt.py.