Skip to content

Commit

Permalink
fixup! add python module to collect package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulPrice committed Jun 7, 2016
1 parent 82ecae5 commit 8661b51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/base/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def getEnvironmentPackages():
are being used. We only report the product/version for these packages.
"""
try:
from eups import Eups, Product
from eups import Eups
from eups.Product import Product
except:
from lsst.pex.logging import getDefaultLog
getDefaultLog().warn("Unable to import eups, so cannot determine package versions from environment")
Expand All @@ -152,7 +153,7 @@ def getEnvironmentPackages():
# we don't tend to run "scons" every time we update some python file, and even if we did sconsUtils
# probably doesn't check to see if the repo is clean).
for prod in products:
if not prod.version.startswith(Product.Product.LocalVersionPrefix):
if not prod.version.startswith(Product.LocalVersionPrefix):
continue
ver = prod.version

Expand Down

0 comments on commit 8661b51

Please sign in to comment.