MCPcopy Index your code
hub / github.com/python/cpython / copy_paths_by_env

Method copy_paths_by_env

Lib/test/test_embed.py:1596–1602  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

1594 api=API_COMPAT, env=env, ignore_stderr=True)
1595
1596 def copy_paths_by_env(self, config):
1597 all_configs = self._get_expected_config()
1598 paths = all_configs['config']['module_search_paths']
1599 paths_str = os.path.pathsep.join(paths)
1600 config['pythonpath_env'] = paths_str
1601 env = {'PYTHONPATH': paths_str}
1602 return env
1603
1604 @unittest.skipIf(MS_WINDOWS, 'See test_init_pybuilddir_win32')
1605 def test_init_pybuilddir(self):

Callers 3

test_init_pybuilddirMethod · 0.95
test_init_pyvenv_cfgMethod · 0.95

Calls 2

_get_expected_configMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected