Skip to content

Commit

Permalink
Merge pull request #5746 from hzhou/2201_mpix
Browse files Browse the repository at this point in the history
python: load_mpix_txt to use correct path

Approved-by: Ken Raffenetti
  • Loading branch information
hzhou authored Jan 6, 2022
2 parents eecd044 + 936603e commit 0f82b30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions maint/local_python/mpi_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def load_C_func_list(binding_dir="src/binding", silent=False):
func_list.append(f)
func_list.sort(key = lambda f: f['dir'])

load_mpix_txt()
load_mpix_txt("%s/mpix.txt" % binding_dir)

return func_list

Expand Down Expand Up @@ -93,11 +93,11 @@ def load_mpi_mapping(api_mapping_txt):
key, val = RE.m.group(1, 2)
G.default_descriptions[key] = val

def load_mpix_txt():
def load_mpix_txt(mpix_txt):
G.mpix_symbols = {}
stage = "functions"
if os.path.exists("src/binding/mpix.txt"):
with open("src/binding/mpix.txt") as In:
if os.path.exists(mpix_txt):
with open(mpix_txt, "r") as In:
for line in In:
if RE.match(r'#\s*mpi.h\s+symbols', line):
stage = "symbols"
Expand Down

0 comments on commit 0f82b30

Please sign in to comment.