Skip to content

Commit

Permalink
Fix global variable bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwinator committed Mar 8, 2022
1 parent 7cf4f13 commit 3ff483c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphviz_py/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def convert(python_graphviz: str, arguments: List[str]) -> str:

output = str(output)
else:
exec(py_code)
exec(py_code, globals())
output = ""
except Exception as ex:
raise Exception(f"Error while processing: {expression}", ex)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "graphviz-py"
version = "1.0.6"
version = "1.0.7"
description = "Allows Python code execution inside of graphviz diagrams."
authors = ["Alwin Schuster <contact@alwinschuster.at>"]
license = 'MPL-2.0'
Expand Down

0 comments on commit 3ff483c

Please sign in to comment.