Skip to content

Commit 752a2fb

Browse files
committed
replace $command_path with path of command.yml
1 parent 9b7edfb commit 752a2fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devchat/engine/command_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def parse_command(file_path: str) -> Command:
6060

6161
with open(file_path, 'r', encoding='utf-8') as file:
6262
# replace {curpath} with config_dir
63-
content = file.read().replace('{curpath}', config_dir)
63+
content = file.read().replace('$command_path', config_dir)
6464
config_dict = yaml.safe_load(content)
6565
config = Command(**config_dict)
6666
return config

0 commit comments

Comments
 (0)