Skip to content

Commit

Permalink
Pull sha from JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteinge committed Jun 18, 2015
1 parent 2d3ae6d commit d7f4ad2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pepper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
vfile = os.path.join(os.path.dirname(__file__), 'version.json')

with open(vfile, 'rb') as f:
version = json.load(f).get('version')
ret = json.load(f)
version = ret.get('version')
sha = ret.get('sha')
except IOError:
# Build version file doesn't exist; we may be running from a clone.
setup_file = os.path.join(os.path.dirname(__file__), os.pardir, 'setup.py')
Expand Down

0 comments on commit d7f4ad2

Please sign in to comment.