Package Ganga :: Package Runtime :: Module gangadoceval
[hide private]
[frames] | no frames]

Source Code for Module Ganga.Runtime.gangadoceval

 1   
 2  # evaluate help expressions in the Ganga.GPI namespace 
 3  # because from ... import * may only be done at the module level 
 4  # hence we need this additional module to do the trick 
 5   
 6  from Ganga.GPI import * 
 7   
8 -def evaluate(v):
9 try: 10 return eval(v) 11 except Exception,x: 12 return v
13