MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / main

Function main

python/pminit/pminit/cli.py:22–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 return value
21
22def main():
23 parser = argparse.ArgumentParser(description="A tool to enable running npm on the correct package.json location")
24 parser.add_argument("executable", nargs=1, help="Should be npm.", type=commandType)
25 parser.add_argument("args", nargs = argparse.REMAINDER)
26 args = parser.parse_args()
27
28 pythonmonkey_path= os.path.realpath(
29 os.path.join(
30 os.path.dirname(__file__),
31 '..',
32 'pythonmonkey'
33 )
34 )
35
36 execute(' '.join( args.executable + args.args ), pythonmonkey_path)

Callers

nothing calls this directly

Calls 1

executeFunction · 0.70

Tested by

no test coverage detected