Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The location of the Python interpreter used and its behaviour during embedded Python script executions inside Oasis montaj can be controlled in two ways:

  1. Using global environment variables. These will override any registry keys. A GEOSOFT_ prefix needs to be added to the registry entry equivalent in this case.
  2. Adding registry entires to the Core Enviroment registry key for the montaj install at HKEY_LOCAL_MACHINE\SOFTWARE\Geosoft\Core\Environment  
  3. Using global environment variables. These will override any registry keys. A GEOSOFT_ prefix needs to be added to the registry entry equivalent in this case.

The variables that are available isOptional environment variables are:

  1. PYTHON_HOME (required) : Location of Python distribution (3.4+) to use.
  2. PYTHON_DLL (optional): Oasis montaj will attempt to launch a background process of the Python.exe interpreter it finds at the home and then uses process inspection to determine the location of its Python dll which it would need to load to embed the interpreter within montaj. This variable should not be necessary but is provided in case some situations arise where this mechanism does not work properly.
  3. PYTHON_SHOW_CONSOLE (optional)CONSOLE : Spawns a console for the duration of every script. print statements and any other console data will be directed to and from this console. The console will require user input to dismiss it.