MCPcopy Create free account
hub / github.com/WebAssembly/wabt / FixPythonExecutable

Function FixPythonExecutable

test/run-tests.py:203–210  ·  view source on GitHub ↗

Given an argument list beginning with a `*.py` file, return one with that uses sys.executable as arg[0].

(args)

Source from the content-addressed store, hash-verified

201
202
203def FixPythonExecutable(args):
204 """Given an argument list beginning with a `*.py` file, return one with that
205 uses sys.executable as arg[0].
206 """
207 exe, rest = args[0], args[1:]
208 if os.path.splitext(exe)[1] == '.py':
209 return [sys.executable, os.path.join(REPO_ROOT_DIR, exe)] + rest
210 return args
211
212
213class CommandTemplate(object):

Callers 1

GetCommandMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected