upkie 9.0.1
Open-source wheeled biped robots
|
std::string argv0 = "" |
Value of argv[0] used to locate runfiles (e.g.
plane.urdf) in Bazel.
This value helps find runfiles because Bazel does not seem to set the RUNFILES_MANIFEST_FILE environment variable from cc_binary rules, although in a similar context it does set it from py_binary rules that depend on "@rules_python//python/runfiles". When RUNFILES_MANIFEST_FILE is unset, knowing argv[0] triggers an alternative way to find runfiles.
The following issues are related:
https://github.com/bazelbuild/bazel/issues/4586 https://github.com/bazelbuild/bazel/issues/7994