Skip to content

Commit 7c02cb0

Browse files
authored
Merge pull request #134 from AI-Planning/enhsp-server-fix
Enhsp server fix
2 parents 24dc506 + 3c7323e commit 7c02cb0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

planutils/server.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,19 @@ def remote(target, options):
144144
sys.exit(f"Call string does not match the remote call: {remote_package['endpoint']['services']['solve']['call']}")
145145

146146
call_map = {}
147+
index = 0
147148
for i, step in enumerate(call_parts[1:]):
148149
if '{' == step[0] and '}' == step[-1]:
149150
option = step[1:-1]
150-
call_map[option] = options[i]
151+
call_map[option] = options[index]
151152
if option not in args:
152153
sys.exit(f"Option {option} from call string is not defined in the remote call: {remote_call}")
153154
if args[option]['type'] == 'file':
154-
with open(options[i], 'r') as f:
155+
with open(options[index], 'r') as f:
155156
json_options[option] = f.read()
156157
else:
157-
json_options[option] = options[i]
158+
json_options[option] = options[index]
159+
index += 1
158160

159161
rcall = remote_call
160162
for k, v in call_map.items():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
long_description = fh.read()
99

1010
setuptools.setup(name='planutils',
11-
version='0.10.9',
11+
version='0.10.10',
1212
description='General library for setting up linux-based environments for developing, running, and evaluating planners.',
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)