Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Geosoft Desktop does not ship with its own Python interpreter. It uses dynamic loading and the version independent Python C API for embedded Python script executions. This means any Windows x64 Python distribution that uses Python 3.4 or higher can be used.

The location and behavior of the Python interpreter for running Python extensions inside Geosoft Desktop is determined either by registry keys, or by environment variables. Environment variables, if set, will have be used regardless of registry settings.  Geosoft Desktop users can also define registry keys using the "Settings > Global settings > Python..." menu item and then re-starting Geosoft Desktop.

RegistryEnvironment
(takes precidence) 
Use
PYTHON_HOMEGEOSOFT_PYTHON_HOMEFolder that contains Python distribution (3.4+) to use. This folder contains python.exe.
PYTHON_DLLGEOSOFT_PYTHON_DLLGeosoft Desktop will attempt to launch a background process of the python.exe interpreter found using PYTHON_HOME, from which process inspection is used to determine the location of python.dll that is loaded to embed the interpreter within Geosoft Desktop. The PYTHON_DLL variable should not be necessary but is provided should to deal with a non-standard Python implementation.
PYTHON_SHOW_CONSOLE GEOSOFT_PYTHON_SHOW_CONSOLE  If '1' (true), a console is spawned for the duration of every script. Console input and output (such as the output from print() statements) is directed to and from this console. The console remains open after termination of the script ans will require the user to close the console by entering using ctrl-C at the keyboard.
  • No labels