MCPcopy Create free account
hub / github.com/catboost/catboost / get_python_cmd

Function get_python_cmd

library/python/pytest/yatest_tools.py:232–240  ·  view source on GitHub ↗
(opts=None, use_huge=True, suite=None)

Source from the content-addressed store, hash-verified

230
231
232def get_python_cmd(opts=None, use_huge=True, suite=None):
233 if opts and getattr(opts, 'flags', {}).get("USE_ARCADIA_PYTHON") == "no":
234 return ["python"]
235 if suite and not suite._use_arcadia_python:
236 return ["python"]
237 if use_huge:
238 return ["$(PYTHON)/python"]
239 ymake_path = opts.ymake_bin if opts and getattr(opts, 'ymake_bin', None) else "$(YMAKE)/ymake"
240 return [ymake_path, "--python"]
241
242
243def normalize_name(name):

Callers

nothing calls this directly

Calls 2

getattrFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected