Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhsp server fix #134

Merged
merged 2 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions planutils/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,19 @@ def remote(target, options):
sys.exit(f"Call string does not match the remote call: {remote_package['endpoint']['services']['solve']['call']}")

call_map = {}
index = 0
for i, step in enumerate(call_parts[1:]):
if '{' == step[0] and '}' == step[-1]:
option = step[1:-1]
call_map[option] = options[i]
call_map[option] = options[index]
if option not in args:
sys.exit(f"Option {option} from call string is not defined in the remote call: {remote_call}")
if args[option]['type'] == 'file':
with open(options[i], 'r') as f:
with open(options[index], 'r') as f:
json_options[option] = f.read()
else:
json_options[option] = options[i]
json_options[option] = options[index]
index += 1

rcall = remote_call
for k, v in call_map.items():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
long_description = fh.read()

setuptools.setup(name='planutils',
version='0.10.9',
version='0.10.10',
description='General library for setting up linux-based environments for developing, running, and evaluating planners.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
Loading