mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a This mirrors the robotpy files for the following projects: - apriltag - datalog - hal - ntcore - romiVendordep - wpilibc - wpimath - xrpVendordep This excludes cscore and the halsim wrappers for at this time. NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
19 lines
490 B
Python
19 lines
490 B
Python
import inspect
|
|
import sys
|
|
|
|
|
|
def run(robot_class, **kwargs):
|
|
"""
|
|
``wpilib.run`` is no longer used. You should run your robot code via one of
|
|
the following methods instead:
|
|
|
|
* Windows: ``py -m robotpy [arguments]``
|
|
* Linux/macOS: ``python -m robotpy [arguments]``
|
|
|
|
In a virtualenv the ``robotpy`` command can be used directly.
|
|
"""
|
|
|
|
msg = inspect.cleandoc(inspect.getdoc(run) or "`wpilib.run` is no longer used")
|
|
print(msg, file=sys.stderr)
|
|
sys.exit(1)
|