MCPcopy Create free account
hub / github.com/mininet/mininet / run

Function run

util/versioncheck.py:6–9  ·  view source on GitHub ↗

Run co and decode for python3

(*args, **kwargs)

Source from the content-addressed store, hash-verified

4from sys import exit, version_info
5
6def run(*args, **kwargs):
7 "Run co and decode for python3"
8 result = co(*args, **kwargs)
9 return result.decode() if version_info[ 0 ] >= 3 else result
10
11# Actually run bin/mn rather than importing via python path
12version = 'Mininet ' + run( 'PYTHONPATH=. bin/mn --version 2>&1', shell=True )

Callers 1

versioncheck.pyFile · 0.70

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected