MCPcopy
hub / github.com/pex-tool/pex / current_platform

Method current_platform

package/scie_config.py:82–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 extra_lock_args: tuple[str, ...] = ()
81
82 def current_platform(self) -> PlatformConfig:
83 for platform_config in self.platforms:
84 if platform_config.platform is SysPlatform.CURRENT:
85 return platform_config
86 raise KeyError(
87 f"This scie configuration does not contain an entry for platform "
88 f"{SysPlatform.CURRENT!r}, only the following platforms are defined: "
89 f"{', '.join(platform_config.name for platform_config in self.platforms)}"
90 )
91
92 def encode(self) -> str:
93 pbs_releases: Counter[str] = Counter()

Callers 1

mainFunction · 0.80

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected