From d9b8faf8bf57b4ec178c487eed4fa8d38b7569a6 Mon Sep 17 00:00:00 2001 From: Jan Phillip Willmann Date: Wed, 4 Sep 2019 10:21:15 +0200 Subject: [PATCH] Fixed problems with 'pythonopen' --- src/Mod/Path/PathScripts/post/grbl_G81_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/post/grbl_G81_post.py b/src/Mod/Path/PathScripts/post/grbl_G81_post.py index 2d3328e0fa..1cacc130f7 100755 --- a/src/Mod/Path/PathScripts/post/grbl_G81_post.py +++ b/src/Mod/Path/PathScripts/post/grbl_G81_post.py @@ -101,7 +101,7 @@ CURRENT_Z = 0 # to distinguish python built-in open function from the one declared below -if open.__module__ == '__builtin__': +if open.__module__ in ['__builtin__','io']: pythonopen = open