From 8267af74b56398c93764db224f7c7cd3b8985f91 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 10 Nov 2022 15:54:48 +0800 Subject: [PATCH] Update vm.h --- src/vm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm.h b/src/vm.h index 717b6541..3dcd2a55 100644 --- a/src/vm.h +++ b/src/vm.h @@ -466,7 +466,7 @@ public: return obj; } - PyVar newModule(_Str name) { + PyVar newModule(_Str name, bool saveToPath=true) { PyVar obj = newObject(_tp_module, (_Int)-2); setAttr(obj, "__name__", PyStr(name)); _modules[name] = obj; @@ -608,7 +608,7 @@ public: this->True = newObject(_tp_bool, true); this->False = newObject(_tp_bool, false); this->builtins = newModule("__builtins__"); - this->_main = newModule("__main__"); + this->_main = newModule("__main__", false); setAttr(_tp_type, __base__, _tp_object); setAttr(_tp_type, __class__, _tp_type);