def run_file(path_or_file, context=None):
 if (context is None):
  context = EvalJs()
 if (not isinstance(context, EvalJs)):
  raise TypeError('context must be the instance of EvalJs')
 eval_value = context.eval(get_file_contents(path_or_file))
 return (eval_value, context)

def run_file ( path_or_file , context = None ) : if ( context is None ) : context = EvalJs ( ) if ( not isinstance ( context , EvalJs ) ) : raise TypeError ( 'context must be the instance of EvalJs' ) eval_value = context . eval ( get_file_contents ( path_or_file ) ) return ( eval_value , context )
execute the file at the specified path with the passed-in globals .