mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 17:16:51 +00:00
Do not overwrite PYTHONIOENCODING if defined
This commit is contained in:
parent
b39b54bbaf
commit
b196ab5793
@ -2194,7 +2194,7 @@ class Worker(ServiceCommandSection):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# check if we need to add encoding to the subprocess
|
# check if we need to add encoding to the subprocess
|
||||||
if sys.getfilesystemencoding() == 'ascii':
|
if sys.getfilesystemencoding() == 'ascii' and not os.environ.get("PYTHONIOENCODING"):
|
||||||
os.environ["PYTHONIOENCODING"] = "utf-8"
|
os.environ["PYTHONIOENCODING"] = "utf-8"
|
||||||
|
|
||||||
print("Starting Task Execution:\n".format(current_task.id))
|
print("Starting Task Execution:\n".format(current_task.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user