Skip to content

Commit 53d4ee6

Browse files
committed
Move globbing to util.
1 parent 25ea8cf commit 53d4ee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wes_client/util.py

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def run(self, wf, jsonyaml, attachments):
157157
158158
:return: The body of the post result as a dictionary.
159159
"""
160+
attachments = list(expand_globs(attachments))
160161
parts = build_wes_request(wf, jsonyaml, attachments)
161162
postresult = requests.post("%s://%s/ga4gh/wes/v1/runs" % (self.proto, self.host),
162163
files=parts,

wes_client/wes_client_main.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import logging
99
import requests
1010
from requests.exceptions import InvalidSchema, MissingSchema
11-
from wes_client.util import modify_jsonyaml_paths, expand_globs, WESClient
11+
from wes_client.util import modify_jsonyaml_paths, WESClient
1212

1313

1414
def main(argv=sys.argv[1:]):
@@ -87,7 +87,6 @@ def main(argv=sys.argv[1:]):
8787
logging.basicConfig(level=logging.INFO)
8888

8989
args.attachments = args.attachments if not args.attachments else args.attachments.split(',')
90-
args.attachments = list(expand_globs(args.attachments))
9190
r = client.run(args.workflow_url, args.job_order, args.attachments)
9291

9392
if args.wait:

0 commit comments

Comments
 (0)