MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / _subprocess_env

Function _subprocess_env

python/tests/test_cli.py:84–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def _subprocess_env():
85 env = os.environ.copy()
86 pythonpath_entries = [p for p in sys.path if p]
87 if env.get('PYTHONPATH'):
88 pythonpath_entries.append(env['PYTHONPATH'])
89 env['PYTHONPATH'] = os.pathsep.join(pythonpath_entries)
90 return env
91
92
93def test_cli_skips_tofu_risk_dictionaries_by_default(tmp_path, monkeypatch):

Callers 1

Calls 4

copyMethod · 0.80
getMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected