23.05.2014 Views

Athena Developer Guide

Athena Developer Guide

Athena Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Athena</strong><br />

Chapter 6 Scripting Version/Issue: 2.0.0<br />

This command, used in conjunction with the theApp.Go command, can be used to execute a Python<br />

script in batch rather than interactive mode. This provides equivalent functionality to a job options text<br />

file, but using the Python syntax. An example of such a batch Python script is shown in Listing 6.10:<br />

Listing 6.10 Python batch script<br />

>>> theApp.TopAlg = [ "HelloWorld" ]<br />

[other configuration commands]<br />

>>> theApp.Go<br />

>>> theApp.Exit<br />

page 41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!