Everything

common.PythonInitialize


This function initializes Python.

[Specification format]

common.PythonInitialize(scriptFile = "")

[Argument(s)]

Argument

Description

scriptFile

Specify the script file to run after initializing Python (default: not specified).

Specify the absolute path.

[Return value]

None

[Detailed description]

-

This function initializes Python.
Initialization is performed by discarding all defined functions or imported modules. If this function is executed while executing a script, Python is forcibly initialized regardless of the execution state.

-

If a script file is specified in scriptFile, the specified script file is executed after initialization has finished.

-

If scriptFile is not specified, Python is merely initialized.

Caution

Since Python is forcibly initialized, an error may be displayed depending on the execution state.

[Example of use]

>>>common.PythonInitialize()
>>>
>>>common.PythonInitialize("C:/Test/script.py")