cl: TestPython; build: PkgLinkExtern
This commit is contained in:
@@ -11,7 +11,7 @@ func main() {
|
||||
code := py.CompileString(c.Str(`print('Hello, World!')`), c.Str(`hello.py`), py.EvalInput)
|
||||
if code != nil {
|
||||
mod := py.ImportModule(c.Str("__main__"))
|
||||
gbl := mod.GetDict()
|
||||
gbl := mod.ModuleGetDict()
|
||||
|
||||
result := py.EvalCode(code, gbl, nil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user