mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
15 lines
345 B
Python
15 lines
345 B
Python
import os
|
|
import pyblish.api
|
|
|
|
|
|
class RepairUnicodeStrings(pyblish.api.Collector):
|
|
"""Validate all environment variables are string type.
|
|
|
|
"""
|
|
|
|
order = pyblish.api.CollectorOrder
|
|
label = 'Unicode Strings'
|
|
|
|
def process(self, context):
|
|
for key, value in os.environ.items():
|
|
os.environ[str(key)] = str(value)
|