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

Method default_program_name

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

Source from the content-addressed store, hash-verified

1362 api=API_PYTHON)
1363
1364 def default_program_name(self, config):
1365 if MS_WINDOWS:
1366 program_name = 'python'
1367 executable = self.test_exe
1368 else:
1369 program_name = 'python3'
1370 if MACOS:
1371 executable = self.test_exe
1372 else:
1373 executable = shutil.which(program_name) or ''
1374 config.update({
1375 'program_name': program_name,
1376 'base_executable': executable,
1377 'executable': executable,
1378 })
1379
1380 def test_init_setpath(self):
1381 # Test Py_SetPath()

Callers 2

test_init_setpathMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected