def eval_script(script_path, ctx, process=None):
    eval_globals = eval_env.setup_env_and_globals(script_path)
    execfile(script_path, eval_globals)
Exemple #2
0
def eval_script(script_path, ctx, process=None):
    eval_globals = eval_env.setup_env_and_globals(script_path)
    with codecs.open(script_path, mode='r', encoding='utf-8',
                     errors='replace') as f:
        script_source = f.read()
    exec(compile(script_source, script_path, 'exec'), eval_globals)
def eval_script(script_path, ctx, process=None):
    eval_globals = eval_env.setup_env_and_globals(script_path)
    execfile(script_path, eval_globals)
Exemple #4
0
def eval_script(script_path, ctx, process=None):
    eval_globals = eval_env.setup_env_and_globals(script_path)
    exec(compile(open(script_path).read(), script_path, 'exec'), eval_globals)