// Get the path to use.
rllib_dir = Path(__file__).parent.parent
print("rllib dir={}".format(rllib_dir))
yaml_files = rllib_dir.rglob(sys.argv[2] + "/*.yaml")
yaml_files = sorted(
map(lambda path: str(path.absolute()), yaml_files), reverse=True)
// Normal mode: Get yaml files to run from command line.
After Change
help="The directory in which to find all yamls to test.")
if __name__ == "__main__":
args = parser.parse_args()
// Bazel regression test mode: Get path to look for yaml files from argv[2].
// Get the path or single file to use.
rllib_dir = Path(__file__).parent.parent