From 7ae1e029a831715d5a19756c26c715f8def62197 Mon Sep 17 00:00:00 2001 From: Harshal Pohekar <106588300+hpohekar@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:36:54 +0530 Subject: [PATCH] fix: api_objects.json fix for PyConsole (#3194) --- src/ansys/fluent/core/search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/fluent/core/search.py b/src/ansys/fluent/core/search.py index 1f083b04b17..bfd57fbcd90 100644 --- a/src/ansys/fluent/core/search.py +++ b/src/ansys/fluent/core/search.py @@ -28,9 +28,9 @@ def _get_api_tree_data_file(): """Get API tree data file.""" - codegen_outdir = (Path(__file__) / ".." / "generated").resolve() - text_file_folder = Path(os.path.join(codegen_outdir, "api_tree")) - return (text_file_folder / "api_objects.json").resolve() + from ansys.fluent.core import CODEGEN_OUTDIR + + return (CODEGEN_OUTDIR / "api_tree" / "api_objects.json").resolve() def get_api_tree_file_name(version: str) -> Path: