Skip to content

Commit

Permalink
MNT: In Python 3, use exec() instead of execfile()
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Dec 26, 2023
1 parent 32a7d89 commit edc5cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mpkg_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():
g = dict(globals())
g['__file__'] = sys.argv[0]
g['__name__'] = '__main__'
execfile(sys.argv[0], g, g)
exec(open(sys.argv[0]).read(), g, g)


if __name__ == '__main__':
Expand Down

0 comments on commit edc5cf3

Please sign in to comment.