MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_system_and_platform

Function get_system_and_platform

tools/get_chromedriver.py:169–183  ·  view source on GitHub ↗

Get the CfT platform name (e.g., mac-arm64, linux64).

()

Source from the content-addressed store, hash-verified

167
168
169def get_system_and_platform():
170 """Get the CfT platform name (e.g., mac-arm64, linux64)."""
171 system = platform.system()
172
173 if system == 'Darwin':
174 if platform.machine() in ('arm64', 'aarch64'):
175 return 'mac-arm64'
176 return 'mac-x64'
177 if system == 'Linux':
178 return 'linux64'
179 if system == 'Windows':
180 return 'win64'
181
182 print(f'Error: Unknown or unsupported operating system: {system}')
183 sys.exit(1)
184
185
186def get_chromedriver_download_url(full_chrome_version, cft_platform):

Callers 1

mainFunction · 0.85

Calls 1

systemMethod · 0.80

Tested by

no test coverage detected