Gseos.ShellExecute
Previous  Top  Next

ShellExecute(strDocumentName)

Invokes the default application that is associated with the document passed in. I.e. if your htm documents are associated with Internet Explorer and you call ShellExecute("index.htm") the browser will be launched with index.htm loaded. Since Linux does not support application association with document names we always launch the default web browser and hope that the document gets rendered reasonably.

ParameterDescription     
strDocumentThe document to view.  

Returns
None

If an error occurs, like the file can not be found, a RuntimeError exception will be raised.

Example
Open this file in HTML help:

import Gseos
Gseos.ShellExecute("doc\\gseos.chm")