From 7f508d7837dfbe0eb4ea4787ddf971a7913149b3 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Mon, 10 Jul 2023 19:01:46 +0200 Subject: [PATCH] :recycle: make code simpler --- openpype/hosts/houdini/plugins/publish/extract_bgeo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openpype/hosts/houdini/plugins/publish/extract_bgeo.py b/openpype/hosts/houdini/plugins/publish/extract_bgeo.py index 4d876cb181..c9625ec880 100644 --- a/openpype/hosts/houdini/plugins/publish/extract_bgeo.py +++ b/openpype/hosts/houdini/plugins/publish/extract_bgeo.py @@ -22,11 +22,9 @@ class ExtractBGEO(publish.Extractor): # Get the filename from the filename parameter output = ropnode.evalParm("sopoutput") - staging_dir = os.path.dirname(output) + staging_dir, file_name = os.path.split(output) instance.data["stagingDir"] = staging_dir - file_name = os.path.basename(output) - # We run the render self.log.info("Writing bgeo files '{}' to '{}'.".format( file_name, staging_dir))