mirror of
https://github.com/clearml/clearml-agent
synced 2025-06-26 18:16:15 +00:00
Do not overwrite PYTHONIOENCODING if defined
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user