Skip to content
Open
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 python/pyzowe/pyzowe.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"""
import subprocess
import json
import os


class ZoweCallError(Exception):
Expand Down Expand Up @@ -82,8 +83,10 @@ def zowe(arguments: str):
for job in zowe("zos-jobs list jobs"):
print(f"Job {job['jobid']} has return code {job['retcode']}")
"""

old_color = os.environ['FORCE_COLOR']
os.environ['FORCE_COLOR'] = "0"
zowe_command = "zowe " + arguments + " --rfj"
os.environ['FORCE_COLOR'] = old_color
try:
completed_process = subprocess.run(
zowe_command, shell=True, capture_output=True, check=True, encoding="utf8")
Expand Down
Loading