From 7c77672226ad92ffd9e6450809554983a696f757 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 9 Oct 2023 14:34:11 -0400 Subject: [PATCH] Dont load proj files if they dont exist --- configs/scripts/houdini-tool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/scripts/houdini-tool.py b/configs/scripts/houdini-tool.py index 436b9ed..292ea76 100755 --- a/configs/scripts/houdini-tool.py +++ b/configs/scripts/houdini-tool.py @@ -113,7 +113,9 @@ def main() -> int: # If the expected project file exists already # (aka, user already saved in a previous session), # then conveniently open the project automatically - cmd.append(str(noncomercialize_path(project_save_file))) + proj_file = noncomercialize_path(project_save_file) + if proj_file.exists(): + cmd.append(str(proj_file)) # Run houdini logger.info(f"Running: {' '.join(cmd)}")