Skip to content

Commit

Permalink
Fix bug in exec_file
Browse files Browse the repository at this point in the history
  • Loading branch information
bgribble committed Feb 27, 2025
1 parent a3e76da commit 8acea0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mfp/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ def exec_file(self, filename):
self.local_names["__name__"] = os.path.basename(filename)
fileobj = open(filename, "r")
if fileobj:
exec(fileobj, self.global_names)
exec(fileobj.read(), self.global_names)

0 comments on commit 8acea0c

Please sign in to comment.