grail.ip.core Module

Version: 16.2

Table of Contents

Overview

Provides some core functionality for a MineSight®-Interactive Planner (MS-IP) scripts.

This module is mainly concerned with operations that interact with the underlying operating system.

Functions

vSysSpawn(program, argument)

Executes the program with the given argument in a separate process. Both the program and argument are strings.

The program is a valid program that is found on the operating system's PATH environment variable, and the single argument is applied to that program.

The program will start within a new process that will inherit the current processes environment variable settings.

This is particularly useful if you want to start notepad.exe with a report file. For example,

from grail.ip import core

f = open("report.dat")
f.write("This is a sample line in a report.\n")
f.close()

core.vSysSpawn("notepad.exe", "report.dat")