grail.info Module

Version: 16.2

Table of Contents

Overview

Provides information about the MineSight(r) Grail (MSGRAIL) environment. One of the most useful defined values for this module is the DESCRIPTION string. The DESCRIPTION string provides a quick snapshot of MSGRAIL for display.

An example of using the DESCRIPTION would be as simple as,

import grail.info
print grail.info.DESCRIPTION

and you would get a result similar too,

Grail Directory: C:\ian\dev\mtlvc\gsrc\grail
  Grail Version: 3.70 (DEV) (Build 469)
       Compiler: MSC VC6 (32 Bit)
     Python API: 2.2.3

where the actual result may vary from release to release.

Data

The following constants are available via this module,

COMPILER_INFO
A string with the contents of the compiler used to build MSGRAIL extensions.
DESCRIPTION
A multi-line description string useful for quickly displaying information about MSGRAIL.
GRAIL_DIR
The directory that MSGRAIL is within.
IS_DEBUG
Whether or not the build was done in DEBUG mode.
IS_IN_MS3D
Returns wheter or not the script is being executed within MS3D (Embedded) or via the command line, and outside of MS3D.
VERSION_BUILD
The version build number.
VERSION_BUILD_DATE
The version build date as a string.
VERSION_BUILD_STR
The version build number as a string.
VERSION_FULL_STR
The full version string, used in the DESCRIPTION.
VERSION_MAJOR
The major release number.
VERSION_MAJOR_STR
The major release number as a string.
VERSION_MINOR
The minor release number.
VERSION_MINOR_STR
The minor release number as a string.
VERSION_PATCH
The patch number.
VERSION_PATCH_STR
The patch number as a string.
VERSION_STR
The reduced version string (no build information)