Skip to content

Commit

Permalink
filepath_fix: Error if we still cannot find BLACS directory
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjbillington committed Mar 12, 2018
1 parent 31cafa4 commit e91647d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@
# with python 2 using "python -m blacs" whilst the current directory is the
# parent of the blacs directory):
BLACS_DIR = os.path.dirname(os.path.realpath(__file__))
if not os.path.isdir(BLACS_DIR):
# Don't want to continue if we have not found the directory:
msg = "Cannot locate the directory BLACS is installed in."
raise RuntimeError(msg)

0 comments on commit e91647d

Please sign in to comment.