PETRONODE

1. Petronode.About.exe

This application shows the program about box

The command line parameter controls for how many seconds to show the box. If the parameter is missing, not a number, or less or equal to zero, the box is shown indefinitely, with the website launch button.

#

# Example 1 - calling about box

#

import os

import subprocess

#

# location of Petronode install folder

#

cBatchProcessorFolder = "C:\\Program Files\\Petronode"

#

# Calls about box for 10 seconds

#

def About ( s=10):

    Params = [os.path.join( cBatchProcessorFolder, "Petronode.About.exe")]

    if s > 0: Params += [ str( s)]

    return subprocess.call( Params)

About()