Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
fix crash when dirpath contains special character
Browse files Browse the repository at this point in the history
  • Loading branch information
k5342 committed Aug 21, 2018
1 parent ae54bd6 commit 08f4fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/autodiscover.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def list_mpiexec(dirpath):
* Otherwise, one is randomly chosen
"""

lst = glob.glob(os.path.join(dirpath, 'bin', '*mpiexec*'))
lst = glob.glob(os.path.join(glob.escape(dirpath), 'bin', '*mpiexec*'))
link_rel = {}

# As an exception, we need to exclude binaries like
Expand Down

0 comments on commit 08f4fe1

Please sign in to comment.