def run_dbnd_subprocess__current_file(args, **kwargs):
    args = args or []
    env = os.environ.copy()
    env["DBND__CORE__TRACKER"] = "['file', 'console', 'api']"
    env["DBND__CORE__TRACKER_API"] = "web"
    return run_dbnd_subprocess(
        [sys.executable, CURRENT_PY_FILE] + args, env=env, **kwargs
    )
def run_dbnd_subprocess__current_file(args, **kwargs):
    args = args or []
    return run_dbnd_subprocess([sys.executable, CURRENT_PY_FILE] + args,
                               **kwargs)
Exemple #3
0
 def test_subprocess_inplace_run(self):
     run_dbnd_subprocess(
         [sys.executable, CURRENT_PY_FILE, "new_dbnd_context"])