<< pyEquals scithon pyGet >>

scithon >> scithon > pyExec

pyExec

Executes a python file at a given location.

Syntax

pyExec(string file_location)

Arguments

file_location

The location to .py file as a string.

Description

Executes a python file (of format .py) in scilab environment and variables are accessible through pyGet.

Example

example.py code:

a = 5;
print(a);
--> pyExec("D:\example.py")
ans  =

"5
"

Report an issue
<< pyEquals scithon pyGet >>