#NEWLINE# def __init__( self , configuration ) : #NEWLINE# #INDENT# super ( Python , self ) . __init__ ( configuration ) #NEWLINE# self . syntax = 'python' #NEWLINE# self . _allowed_modules = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _script_locals = { #NEWLINE# #INDENT# 'result' : { #NEWLINE# #INDENT# 'rows' : [ ] , #NEWLINE# 'columns' : [ ] , #NEWLINE# 'log' : [ ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . _enable_print_log = True #NEWLINE# self . _custom_print = CustomPrint ( ) #NEWLINE# if self . configuration . get ( 'allowedImportModules' , None ) : #NEWLINE# #INDENT# for item in self . configuration [ 'allowedImportModules' ] . split ( ',' ) : #NEWLINE# #INDENT# self . _allowed_modules [ item ] = None #NEWLINE# #UNINDENT# #UNINDENT# if self . configuration . get ( 'additionalModulesPaths' , None ) : #NEWLINE# #INDENT# for p in self . configuration [ 'additionalModulesPaths' ] . split ( ',' ) : #NEWLINE# #INDENT# if ( p not in sys . path ) : #NEWLINE# #INDENT# sys . path . append ( p )