MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / _make_cwd_env

Function _make_cwd_env

tests/testutils.py:32–40  ·  view source on GitHub ↗

Helper to prepare environment for the child processes

()

Source from the content-addressed store, hash-verified

30
31
32def _make_cwd_env():
33 """Helper to prepare environment for the child processes"""
34 cloudpickle_repo_folder = op.normpath(op.join(op.dirname(__file__), ".."))
35 env = os.environ.copy()
36 pythonpath = "{src}{sep}tests{pathsep}{src}".format(
37 src=cloudpickle_repo_folder, sep=os.sep, pathsep=os.pathsep
38 )
39 env["PYTHONPATH"] = pythonpath
40 return cloudpickle_repo_folder, env
41
42
43def subprocess_pickle_string(input_data, protocol=None, timeout=TIMEOUT, add_env=None):

Callers 2

subprocess_pickle_stringFunction · 0.85
assert_run_python_scriptFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…