MCPcopy Create free account
hub / github.com/Vector35/debugger / name_to_fpath

Function name_to_fpath

test/debugger_test.py:21–37  ·  view source on GitHub ↗
(testbin, arch=None, os_str=None)

Source from the content-addressed store, hash-verified

19# 'helloworld' -> '{BN_SOURCE_ROOT}\public\debugger\test\binaries\Windows-x64\helloworld.exe' (windows)
20# 'helloworld' -> '{BN_SOURCE_ROOT}/public/debugger/test/binaries/Darwin/arm64/helloworld' (linux, macOS)
21def name_to_fpath(testbin, arch=None, os_str=None):
22 if arch is None:
23 arch = platform.machine()
24
25 if os_str is None:
26 os_str = platform.system()
27
28 if os_str == 'Windows' and not testbin.endswith('.exe'):
29 testbin += '.exe'
30
31 signed = ''
32 if os_str == 'Darwin':
33 signed = '-signed'
34
35 base_path = os.path.dirname(os.path.realpath(__file__))
36 path = os.path.realpath(os.path.join(base_path, 'binaries', f'{os_str}-{arch}{signed}', testbin))
37 return path
38
39
40def is_wow64(fpath):

Callers 11

test_repeated_useMethod · 0.85
test_return_codeMethod · 0.85
test_step_intoMethod · 0.85
test_breakpointMethod · 0.85
test_threadMethod · 0.85
test_assembly_codeMethod · 0.85
test_attachMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected