Skip to content

Commit 4f75671

Browse files
author
Peter Amstutz
committed
wes_client relpath to cwd
1 parent 20a9559 commit 4f75671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wes_client/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def build_wes_request(workflow_file, json_path, attachments=None):
129129
if attachment.startswith("file://"):
130130
attachment = attachment[7:]
131131
attach_f = open(attachment, "rb")
132-
relpath = os.path.relpath(attachment, os.path.dirname(workflow_file[7:]))
132+
relpath = os.path.relpath(attachment, os.getcwd())
133133
elif attachment.startswith("http"):
134134
attach_f = urlopen(attachment)
135135
relpath = os.path.basename(attach_f)

0 commit comments

Comments
 (0)