From a3ab59c40008f481d51b2835397473d4c3d8117a Mon Sep 17 00:00:00 2001 From: Peter Boin Date: Sat, 16 Jun 2018 22:24:36 +1000 Subject: [PATCH] changed __name__ to something more descriptive. to complement jmwright/cadquery-freecad-module#125 --- cadquery/cqgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cadquery/cqgi.py b/cadquery/cqgi.py index 8a4c029..bde5178 100644 --- a/cadquery/cqgi.py +++ b/cadquery/cqgi.py @@ -101,6 +101,7 @@ def build(self, build_parameters=None, build_options=None): self.set_param_values(build_parameters) collector = ScriptCallback() env = EnvironmentBuilder().with_real_builtins().with_cadquery_objects() \ + .add_entry("__name__", "__cqgi__") \ .add_entry("show_object", collector.show_object) \ .add_entry("debug", collector.debug) \ .add_entry("describe_parameter",collector.describe_parameter) \