OP-2414 - Hound

This commit is contained in:
Petr Kalis 2022-02-08 18:52:33 +01:00
parent c277cb3903
commit 3497822381
2 changed files with 7 additions and 7 deletions

View file

@ -135,7 +135,7 @@ def setup_startup_scripts():
log.warning(
"Failed to copy {0} to {1}! "
"Defaulting to Avalon TOONBOOM_GLOBAL_SCRIPT_LOCATION."
.format(avalon_harmony_startup, env_harmony_startup))
.format(avalon_harmony_startup, env_harmony_startup))
os.environ["TOONBOOM_GLOBAL_SCRIPT_LOCATION"] = avalon_dcc_dir
else:
@ -169,8 +169,8 @@ def check_libs():
else:
log.error(("Cannot find OpenHarmony library. "
"Please set path to it in LIB_OPENHARMONY_PATH "
"environment variable."))
"Please set path to it in LIB_OPENHARMONY_PATH "
"environment variable."))
raise RuntimeError("Missing OpenHarmony library.")
@ -206,6 +206,7 @@ def launch(application_path, *args):
host_tools.show_workfiles(save=False)
ProcessContext.execute_in_main_thread(check_workfiles_tool)
def check_workfiles_tool():
if ProcessContext.workfile_tool.isVisible():
ProcessContext.execute_in_main_thread(check_workfiles_tool)
@ -226,6 +227,7 @@ def open_empty_workfile():
launch_zip_file(zip_file)
def get_local_harmony_path(filepath):
"""From the provided path get the equivalent local Harmony path."""
basename = os.path.splitext(os.path.basename(filepath))[0]
@ -314,9 +316,6 @@ def launch_zip_file(filepath):
return
print("Launching {}".format(scene_path))
#kwargs = get_non_python_app_args()
kwargs = _get_kwargs()
process = subprocess.Popen(
[ProcessContext.application_path, scene_path],

View file

@ -43,7 +43,8 @@ class ImportPaletteLoader(api.Loader):
msg = "Updated {}.".format(subset_name)
msg += " You need to reload the scene to see the changes.\n"
msg += "Please save workfile when ready and use Workfiles to reopen it."
msg += "Please save workfile when ready and use Workfiles "
msg += "to reopen it."
harmony.send(
{