OpenStructure
Data Structures | Functions | Variables
ost.ost_startup Namespace Reference

Data Structures

class  OstOptionParser
 

Functions

def show_help (option, opt, value, parser)
 
def show_version (option, opt, value, parser)
 
def interactive_flag (option, opt, value, parser)
 
def stop ()
 
def get_options_parser (usage)
 

Variables

string usage
 
 action_path = os.path.abspath(os.environ.get("OST_EXEC_DIR", ""))
 
def parser = get_options_parser(usage)
 
 options
 
 args
 
 HistoryFile = os.path.expanduser("~/.ost_history")
 
bool gui_mode = False
 
 ps1
 
 ps2
 
 argv
 
 home = os.getenv("HOME") or os.getenv("USERPROFILE")
 
def script = parser.rargs[0]
 
 sys_argv_backup = sys.argv
 

Function Documentation

◆ get_options_parser()

def ost.ost_startup.get_options_parser (   usage)

Definition at line 23 of file ost_startup.py.

◆ interactive_flag()

def ost.ost_startup.interactive_flag (   option,
  opt,
  value,
  parser 
)

Definition at line 15 of file ost_startup.py.

◆ show_help()

def ost.ost_startup.show_help (   option,
  opt,
  value,
  parser 
)

Definition at line 5 of file ost_startup.py.

◆ show_version()

def ost.ost_startup.show_version (   option,
  opt,
  value,
  parser 
)

Definition at line 10 of file ost_startup.py.

◆ stop()

def ost.ost_startup.stop ( )

Definition at line 19 of file ost_startup.py.

Variable Documentation

◆ action_path

action_path = os.path.abspath(os.environ.get("OST_EXEC_DIR", ""))

Definition at line 66 of file ost_startup.py.

◆ args

args

Definition at line 90 of file ost_startup.py.

◆ argv

argv

Definition at line 99 of file ost_startup.py.

◆ gui_mode

bool gui_mode = False

Definition at line 95 of file ost_startup.py.

◆ HistoryFile

HistoryFile = os.path.expanduser("~/.ost_history")

Definition at line 92 of file ost_startup.py.

◆ home

home = os.getenv("HOME") or os.getenv("USERPROFILE")

Definition at line 100 of file ost_startup.py.

◆ options

options

Definition at line 90 of file ost_startup.py.

◆ parser

def parser = get_options_parser(usage)

Definition at line 89 of file ost_startup.py.

◆ ps1

ps1

Definition at line 97 of file ost_startup.py.

◆ ps2

ps2

Definition at line 98 of file ost_startup.py.

◆ script

def script = parser.rargs[0]

Definition at line 114 of file ost_startup.py.

◆ sys_argv_backup

sys_argv_backup = sys.argv

Definition at line 115 of file ost_startup.py.

◆ usage

string usage
Initial value:
1 = """
2  ost [ost options] [script to execute] [script parameters]
3  ost [action name] [action options]
4 
5 The following actions are available:
6 """

Definition at line 59 of file ost_startup.py.