Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4171 from pypeclub/bugfix/OP-4557_Nuke-Wrong-enco…
Browse files Browse the repository at this point in the history
…ding-causing-Unicode-characters-to-change-on-each-script-saveopen

Nuke/Hiero: Remove tkinter library paths before launch
  • Loading branch information
iLLiCiTiT authored Dec 5, 2022
2 parents c7a4cf1 + c071724 commit c9d6746
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openpype/hosts/hiero/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ def add_implementation_envs(self, env, _app):
new_hiero_paths.append(norm_path)

env["HIERO_PLUGIN_PATH"] = os.pathsep.join(new_hiero_paths)
# Remove auto screen scale factor for Qt
# - let Hiero decide it's value
env.pop("QT_AUTO_SCREEN_SCALE_FACTOR", None)
# Remove tkinter library paths if are set
env.pop("TK_LIBRARY", None)
env.pop("TCL_LIBRARY", None)

# Add vendor to PYTHONPATH
python_path = env["PYTHONPATH"]
Expand Down
5 changes: 5 additions & 0 deletions openpype/hosts/nuke/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ def add_implementation_envs(self, env, _app):
new_nuke_paths.append(norm_path)

env["NUKE_PATH"] = os.pathsep.join(new_nuke_paths)
# Remove auto screen scale factor for Qt
# - let Nuke decide it's value
env.pop("QT_AUTO_SCREEN_SCALE_FACTOR", None)
# Remove tkinter library paths if are set
env.pop("TK_LIBRARY", None)
env.pop("TCL_LIBRARY", None)

# Add vendor to PYTHONPATH
python_path = env["PYTHONPATH"]
Expand Down

0 comments on commit c9d6746

Please sign in to comment.