GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
python
go4init.py
Go to the documentation of this file.
1
2
"""
3
Add PyROOT-bound go4 object to builtins
4
this allows it to be accessed inside imported modules, cf. go4py.go4.go4Wrapper
5
"""
6
7
8
try
:
9
go4
10
except
NameError
as
e:
11
msg =
"Are you importing go4init outside of Go4?"
12
a = list(e.args)
13
a[0] +=
"\n"
+
" "
* len(
"NameError: "
) + msg
14
e.args = tuple(a)
15
raise
16
17
18
import
__builtin__
19
__builtin__.go4 = go4
20
21
22
Generated on Fri Oct 26 2018 08:34:53 for GSI Object Oriented Online Offline (Go4) by
1.8.8