Script Command

www.altova.com Expand/Collapse All Print this Topic Previous Page Up One Level Next page

Home >  Command Line Interface (CLI) >

Script Command

The script command executes a Python 3.5 script that uses the RaptorXML Python API.

 

Windows

RaptorXML script [options] File

Linux

raptorxml script [options] File

Mac

raptorxml script [options] File

 

 

The File argument is the path to the Python script you want to execute. Additional options are available. To obtain a list of these options, run the following command:

 

Windows

RaptorXML script [-h | --help]

Linux

raptorxml script [-h | --help]

Mac

raptorxml script [-h | --help]

 

Examples

 

raptorxml script c:\MyPythonScript.py
raptorxml script -h
raptorxml script          # Without a script file, an interactive Python shell is started
raptorxml script -m pip   # Loads and executes the pip module; see the Options section below

 

Click to expand/collapseCasing and slashes on the command line

RaptorXML on Windows

raptorxml on Unix (Linux, Mac)

 

* Note that lowercase (raptorxml) works on all platforms (Windows, Linux, and Mac), while upper-lower (RaptorXML) works only on Windows and Mac.

* Use forward slashes on Linux and Mac, backslashes on Windows.

 

Options

Any options and arguments after the script command are forwarded directly to the Python interpreter. Please consult the Python documentation page https://docs.python.org/3.5/using/cmdline.html for a complete listing of available options.

 


© 2019 Altova GmbH