pyinit
| pyinit | 
  Purpose
 
  
  Synopsis
 
 procedure pyinit
 
  Example
 
 
 The following example initializes Python:
 
 pyinit
  Further information
 
 
 1. The use of this procedure is optional: Python is automatically initialized upon first use.
 
 
 2. You can only initialize one Python interpreter per Mosel instance. The initialization will fail if you attempt to initialize two interpreters in the same Mosel instance. Use
 pyunload to release the interpreter such that it can be initialized afterwards in another model.
 
 
 3. In order to use multiple interpreters in parallel, it is necessary to create a new Mosel instance for each additional interpreter. Use the
 connect function from the
 mmjobs module to create a new instance.
 
 
 4. If the initialization fails because a certain Python module cannot be loaded, try to set the
 PYTHONHOME environment variable to the directory of your Python installation.
 
 
  Related topics
 
  
