Skip to content

Commit

Permalink
gyre defaults doc/docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Aug 17, 2024
1 parent 17c9b9e commit 6235313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesaport/Access/gyre_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def gyreDefaults(self):
dict: A dictionary with all the parameters and their values.
"""
gyre_dir = os.path.abspath(os.environ["GYRE_DIR"])
gyre_defaults_dir = os.path.join(gyre_dir, "doc/source/ref-guide/input-files/*")
gyre_defaults_dir = os.path.join(gyre_dir, "docs/source/ref-guide/input-files")
if not os.path.exists(gyre_defaults_dir):
gyre_defaults_dir = os.path.join(gyre_dir, "doc/source/ref-guide/input-files")
gyre_defaults_dir = os.path.join(gyre_defaults_dir, "*")
defaultsFiles = glob.glob(gyre_defaults_dir)
# sections = ["&"+name.split("/")[-1].split('.')[0].split('-')[0] for name in defaultsFiles]
# print(sections)
Expand Down

0 comments on commit 6235313

Please sign in to comment.