Skip to content

Commit

Permalink
Look for libraries in Libraries as well as Prelude directory
Browse files Browse the repository at this point in the history
Open source bsc keeps core libraries in "Libraries" instead of
"Prelude", so look in both places.

This commit still assumes BLUESPECDIR is points to the bsc installation.

This commit fixes a second part of issue #157.
  • Loading branch information
jameyhicks committed Mar 3, 2020
1 parent f976042 commit b23d069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/bsvdependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def getBsvPackages(bluespecdir):
the packages in the prelude library of this distribution.
"""
pkgs = []
for f in glob.glob('%s/Prelude/*.bo' % bluespecdir):
for f in glob.glob('%s/Prelude/*.bo' % bluespecdir) + glob.glob('%s/Libraries/*.bo' % bluespecdir):
pkgs.append(os.path.splitext(os.path.basename(f))[0])
return pkgs

Expand Down
2 changes: 1 addition & 1 deletion scripts/packagesource.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def getBsvPackages(bluespecdir):
the packages in the prelude library of this distribution.
"""
pkgs = []
for f in glob.glob('%s/Prelude/*.bo' % bluespecdir):
for f in glob.glob('%s/Prelude/*.bo' % bluespecdir) + glob.glob('%s/Libraries/*.bo' % bluespecdir):
pkgs.append(os.path.splitext(os.path.basename(f))[0])
return pkgs

Expand Down

0 comments on commit b23d069

Please sign in to comment.