Skip to content
Snippets Groups Projects
Commit 2869597f authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed broken implementation to distinguish between batch mode (ost) and gui...

fixed broken implementation to distinguish between batch mode (ost) and gui mode (gosty); now available as ost.gui_mode flag
parent 8dd58eea
Branches
Tags
No related merge requests found
......@@ -167,6 +167,7 @@ int init_python_interpreter()
}
setup_python_search_path(root, py);
py.RunCommand("from ost import *");
py.RunCommand("gui_mode=True");
return 0;
}
......
import sys, os, platform
import optparse
interactive=False
def show_help(option, opt, value, parser):
parser.print_help()
sys.exit(-1)
......@@ -49,7 +47,11 @@ def _InitRuleBasedBuilder():
_InitRuleBasedBuilder()
import os.path
HistoryFile=os.path.expanduser('~/.ost_history')
# this is a silly name...
InGUIMode=False
# ... lets be more pythonic
gui_mode=False
sys.ps1='ost> '
sys.ps2='..... '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment