Skip to content

Commit

Permalink
Merge pull request #357 from pypeclub/fix_tuple_list_conversions
Browse files Browse the repository at this point in the history
convert tuple ctx.obj["plugin_paths"] to list before concatenation
  • Loading branch information
mottosso authored Jan 7, 2020
2 parents e58e21e + 49285b3 commit 8588808
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pyblish/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ def main(ctx,
global _ctx
_ctx = ctx

# Convert multi-arguments from tuple to list, see #357
plugin_paths = list(plugin_paths)
add_plugin_paths = list(add_plugin_paths)
data = list(data)

level = LOG_LEVEL[logging_level]
log.setLevel(level)

Expand Down Expand Up @@ -309,6 +314,10 @@ def publish(ctx,
"""

# Convert multi-arguments from tuple to list, see #357
targets = list(targets)
instances = list(instances)

_start = time.time() # Benchmark

# Use `path` argument as initial data for context
Expand Down
2 changes: 1 addition & 1 deletion pyblish/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

VERSION_MAJOR = 1
VERSION_MINOR = 8
VERSION_PATCH = 2
VERSION_PATCH = 3

version_info = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
version = '%i.%i.%i' % version_info
Expand Down

0 comments on commit 8588808

Please sign in to comment.