Skip to content

Commit

Permalink
Python 3 compatibile execfile-like functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Apr 18, 2014
1 parent b0769b8 commit cc98bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
from distutils.extension import Extension

info = {}
execfile(os.path.join('cytoolz', '_version.py'), info)
filename = os.path.join('cytoolz', '_version.py')
exec(compile(open(filename, "rb").read(), filename, 'exec'), info)
VERSION = info['__version__']

try:
Expand Down

0 comments on commit cc98bea

Please sign in to comment.