Skip to content

Commit 9cf0b6d

Browse files
committed
fix to mpiimport so only find_module(path) is used
1 parent 6c08e8f commit 9cf0b6d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mpiimport.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ def find_module(self, fullname, path=None):
1515
# print "[%d] find_module %s %s" % (rank, fullname, path)
1616

1717
subname = fullname.split(".")[-1]
18-
if subname != fullname and self.path is None:
18+
if subname != fullname and path is None:
1919
return None
20-
if self.path is None:
21-
path = None
22-
else:
23-
path = [self.path]
2420
try:
2521
file, filename, stuff = mpiimporter.find_module(subname, path)
2622
except ImportError:

0 commit comments

Comments
 (0)