Start XCT Console Application

The XCT Console Application is installed with the standard ETK Tools installation. The script is provided as the first command line parameter. The command line parameters will be forwarded to the Python script in the same order.

The script runs in the context of the XCT Console Application, not as a separated process. For Details see: Develop Python Programmers

The ETK Tools installation adapts the PATH environment variable so that the XCT Console Application can be run from any location. Simply call the XCTConsole.exe within a Windows console using the following parameter schema:

> XCTConsole.exe <script file path> [<additional parameter> …]

If there is a folder or directory in the working directory named exactly like a namespace from an import statement inside the Python script, the following warning message appears when starting the XCT Console Application:

warning: ImportWarning: Not importing directory <some Directory>: missing__init__.py

To solve this problem, change the working directory.
If this warning occurs regarding the ETAS Exceptions, the script will still work as expected.

Examples

The ETK Tools installation also associates the file extension “.pyxct” with the XCTConsole.exe application. So a script, which does not require any further parameters, can be executed by simply double clicking it in the Windows file explorer or by typing its file name in the Windows command prompt:

C:\Temp> Script.pyxct

Attention: When calling the script directly without adding “XCTConsole.exe” all additional parameters get discarded!

Call the XCT Console Application using a script located at a different location:

C:\Temp>XCTConsole.exe C:\Data\Scripts\Script.pyxct

Call the XCT Console Application using a script located in the current directory:

C:\Temp>XCTConsole.exe Script.pyxct

Call the XCT Console Application using a script located in the directory one level above:

C:\Temp>XCTConsole.exe ..\Script.pyxct

See also

XCT Automation

Develop Python Script

API Definition