Skip to content

Commit be86828

Browse files
authored
Merge pull request #223 from dartmouth-pbs/bf-older-python
BF: workaround for elderly buggy python 2.7 exec
2 parents 05ae5b0 + d088a91 commit be86828

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def main():
1919
# Get version and release info, which is all stored in heudiconv/info.py
2020
info_file = op.join(thispath, 'heudiconv', 'info.py')
2121
with open(info_file) as infofile:
22-
exec(infofile.read(), globals(), ldict)
22+
# exec(infofile.read(), globals(), ldict)
23+
# Workaround for python 2.7 prior 2.7.8
24+
eval(compile(infofile.read(), '<string>', 'exec'), globals(), ldict)
2325

2426

2527
def findsome(subdir, extensions):

0 commit comments

Comments
 (0)