File tree Expand file tree Collapse file tree
scripts/reinforcement_learning/rlinf Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757# Resolve config path and name from CLI args
5858if not args_cli .config_name :
5959 parser .error ("--config_name is required (e.g. --config_name isaaclab_ppo_gr00t_assemble_trocar)" )
60- config_dir = args_cli .config_path or str (SCRIPT_DIR )
6160config_name = args_cli .config_name
61+ config_dir = cli_args .resolve_config_dir (config_name , args_cli .config_path )
6262os .environ ["RLINF_CONFIG_FILE" ] = str (Path (config_dir ) / f"{ config_name } .yaml" )
6363
6464# Add config dir to PYTHONPATH so that Ray rollout workers can resolve
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ def run(argv: list[str]) -> None:
7070 _list_tasks ()
7171 return
7272
73- config_dir = args_cli .config_path or str (RLINF_DIR )
7473 config_name = args_cli .config_name
74+ config_dir = CLI_ARGS .resolve_config_dir (config_name , args_cli .config_path )
7575 os .environ ["RLINF_CONFIG_FILE" ] = str (Path (config_dir ) / f"{ config_name } .yaml" )
7676
7777 if config_dir not in os .environ .get ("PYTHONPATH" , "" ):
You can’t perform that action at this time.
0 commit comments