geosoft.gxpy.system

Geosoft system functions.

Note

Regression tests provide usage examples: Tests

Functions

_logit(fn, *args, **kw)

function console printing decorator

_parallel_foreach(f, l[, threads, return_])

Apply f to each element of l, in parallel, called by parallel_map().

_t(s)

_unzip(zip_file_name, folder)

app_name()

Returns application script name.

call_location([stack])

Returns function call location including file and line number as a string

func_name([stack])

Returns function name.

parallel_map(f, l[, threads])

A parallel equivalent of the map() built-in Python function (it supports only one iterable argument though).

remove_dir(directory[, wait, tries])

Robust directory removal, with timed retries to allow for OS timing lags.

translate(s)

Translate string to user language.

unzip(zip_file_name[, folder, report, ...])

Decompress and write the content of a zip file to a folder.

wait_on_file(fileName[, wait, retries])

Working with large files on systems that cache the file can cause a situation where the file is not yet completely written out before an attempt is made to open a file that has just been closed.

Exceptions

GXSysException(message)

Exceptions from geosoft.gxpy.system.