mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +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
|
||||
if sys.getfilesystemencoding() == 'ascii':
|
||||
if sys.getfilesystemencoding() == 'ascii' and not os.environ.get("PYTHONIOENCODING"):
|
||||
os.environ["PYTHONIOENCODING"] = "utf-8"
|
||||
|
||||
print("Starting Task Execution:\n".format(current_task.id))
|
||||
|
Loading…
Reference in New Issue
Block a user