mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #2465 from pypeclub/bugfix/unicode_envs
General: Anatomy does not return root envs as unicode
This commit is contained in:
commit
eb6dc353f4
1 changed files with 4 additions and 1 deletions
|
|
@ -1568,8 +1568,11 @@ class Roots:
|
|||
key_items = [self.env_prefix]
|
||||
for _key in keys:
|
||||
key_items.append(_key.upper())
|
||||
|
||||
key = "_".join(key_items)
|
||||
return {key: roots.value}
|
||||
# Make sure key and value does not contain unicode
|
||||
# - can happen in Python 2 hosts
|
||||
return {str(key): str(roots.value)}
|
||||
|
||||
output = {}
|
||||
for _key, _value in roots.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue