Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Python.Load

Loads the Python library.

Component Version macOS Windows Linux Server iOS SDK
Python 14.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Python.Load"; Path )   More

Parameters

Parameter Description Example
Path The file path to the python library.
Pass name of .so file on Linux, DLL file on Windows or dylib for macOS.
For macOS also you can pass path of framework.
"python312.so"

Result

Returns OK or error.

Description

Loads the Python library.
You may need to check what version you have as the paths usually contain version numbers.

e.g.
MacOS:/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework
Windows:C:\Users\cs\AppData\Local\Programs\Python\Python312\python312.dll
Linux:libpython3.11.so

Examples

Load library on Linux:

Set Variable [ $r ; Value: MBS("Python.Load"; "/usr/lib/aarch64-linux-gnu/libpython3.10.so.1.0") ]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 23th May 2024, last changed 27th August 2024


Python.List - Python.Loaded