You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

#!/usr/bin/env python3
Simple stub that calls the 'real' in the git submodule without an
additional path prefix. Passes along any parameters without modification.
For usage, optional arguments, syntax, et cetera please refer to the
of this repository, the 'robolab-deploy' submodule or the RoboLab Docs which
are accessible at
This module:
The submodule:
Part of the RoboLab project
Systems Engineering Group, Faculty of Computer Science, TU Dresden
Copyright (c) 2017-2018 by Lutz Thies
Released under the MIT License
import sys
import subprocess
# check if somebody forgot to use the --recursive flag
with open("./robolab-deploy/") as f:
except FileNotFoundError:
print("You forgot to use the --recursive flag while cloning this repository.")
print("Please run: git submodule update --init --recursive")
# get the full executable path, because windows can't handle our shebang
PYTHON_EXECUTABLE = sys.executable
# it's basically a one-liner \o/[PYTHON_EXECUTABLE,
'./robolab-deploy/'] + sys.argv[1:])