Skip to content

Commit

Permalink
fix: api_objects.json fix for PyConsole (#3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar authored Aug 16, 2024
1 parent 5b624cf commit 7ae1e02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansys/fluent/core/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7ae1e02

Please sign in to comment.