Skip to content

Commit

Permalink
Fix Sphinx as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Mar 10, 2021
1 parent 1cc9c09 commit 4d37b08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyiron_atomistics/sphinx/potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def find_potential_file(path):
resource_path_lst = s.resource_paths
for conda_var in ["CONDA_PREFIX", "CONDA_DIR"]:
if conda_var in env.keys(): # support sphinx-data package
resource_path_lst += [os.path.join(os.environ[conda_var], "share", "sphinxdft")]
path_to_add = os.path.join(env[conda_var], "share", "sphinxdft")
if path_to_add not in resource_path_lst:
resource_path_lst += [path_to_add]
return find_potential_file_base(
path=path,
resource_path_lst=resource_path_lst,
Expand Down

0 comments on commit 4d37b08

Please sign in to comment.