Skip to content
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
2 changes: 1 addition & 1 deletion pyflow/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def generate_stub(self):
+ " "
)

return [f"python{self.python_version} -u {args}- <<EOS"] + script_body + ["EOS"]
return [f"python{self.python_version} -u - {args}<<EOS"] + script_body + ["EOS"]


class DelegatingScript(Script):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_python_script_cmd_args():

checkscript_python3 = textwrap.dedent(
"""
python3 -u --key-1=value-1 --key-2=value-2 - <<EOS
python3 -u - --key-1=value-1 --key-2=value-2 <<EOS
import argparse

if __name__ == "__main__":
Expand All @@ -249,7 +249,7 @@ def test_python_script_cmd_args():

checkscript_python2 = textwrap.dedent(
"""
python2 -u --key-1=value-1 --key-2=value-2 - <<EOS
python2 -u - --key-1=value-1 --key-2=value-2 <<EOS
import argparse

if __name__ == "__main__":
Expand Down
Loading