30 declareProperty(
"StartupScript", m_startupScript =
"" );
54 tmp.
assign(prpMgr->getProperty(
"JobOptionsType"));
55 if ( tmp.
value( ) ==
"NONE" ) {
56 tmp.
assign(prpMgr->getProperty(
"JobOptionsPath"));
62 char* progName[] = {
const_cast<char*
>(
"GaudiPython") };
67 PySys_SetArgv( 1, progName );
70 std::string version( fullversion, 0, fullversion.find_first_of(
' '));
71 std::string vers(version, 0, version.find_first_of(
'.',version.find_first_of(
'.')+1));
79 dlopen(libname.c_str(), RTLD_GLOBAL | RTLD_LAZY);
84 PyRun_SimpleString(
"from gaudimodule import *" );
85 PyRun_SimpleString(
"g = AppMgr()" );
87 PyRun_SimpleString(
"theApp = g" );
88 PyRun_SimpleString(
"def Service(n): return g.service(n)" );
89 PyRun_SimpleString(
"def Algorithm(n): return g.algorithm(n)" );
90 PyRun_SimpleString(
"def Property(n): return g.service(n)" );
92 #if !defined( _WIN32 )
93 PyRun_SimpleString(
"import rlcompleter");
94 PyRun_SimpleString(
"rlcompleter.readline.parse_and_bind('tab: complete')");
124 while(
file.get(ch) ) stream.
put(ch);
125 PyRun_SimpleString( const_cast<char*>(stream.str().c_str()) );
132 PyRun_InteractiveLoop(stdin,
"\0");