Skip to content
Merged
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
5 changes: 4 additions & 1 deletion snakemake_interface_executor_plugins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def maybe_encode(value):
if isinstance(value, SettingsEnumBase):
return value.item_to_choice()
elif isinstance(value, Path):
return shlex.quote(str(value))
if base64_encode:
return encode_as_base64(str(value))
else:
return shlex.quote(str(value))
elif isinstance(value, str):
if is_quoted(value) and not base64_encode:
# the value is already quoted, do not quote again
Expand Down