MCPcopy Create free account
hub / github.com/deepdrive/deepdrive / main

Function main

install.py:52–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def main():
53 print('Checking python version')
54 py = check_py_version()
55 tf_valid = get_tf_valid()
56
57 if 'ubuntu' in platform.platform().lower():
58 # Install tk for dashboard
59 run_command('sudo apt-get install -y python3-tk', throw=False, verbose=True)
60
61 run_command(py + ' -m pip install -r requirements.txt', verbose=True)
62
63 if tf_valid:
64 print('Starting baseline agent')
65 os.system('python main.py --baseline')
66 else:
67 print('Starting sim in path follower mode')
68 os.system('python main.py --path-follower')
69
70
71def get_tf_valid():

Callers 1

install.pyFile · 0.70

Calls 3

check_py_versionFunction · 0.85
get_tf_validFunction · 0.85
run_commandFunction · 0.70

Tested by

no test coverage detected