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

Method set_path_env_var

Tools/c-analyzer/distutils/msvccompiler.py:307–319  ·  view source on GitHub ↗

Set environment variable 'name' to an MSVC path type value. This is equivalent to a SET command prior to execution of spawned commands.

(self, name)

Source from the content-addressed store, hash-verified

305 return []
306
307 def set_path_env_var(self, name):
308 """Set environment variable 'name' to an MSVC path type value.
309
310 This is equivalent to a SET command prior to execution of spawned
311 commands.
312 """
313
314 if name == "lib":
315 p = self.get_msvc_paths("library")
316 else:
317 p = self.get_msvc_paths(name)
318 if p:
319 os.environ[name] = ';'.join(p)
320
321
322if get_build_version() >= 8.0:

Callers

nothing calls this directly

Calls 2

get_msvc_pathsMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected