|
|
@@ -19,14 +19,14 @@ class MyApp extends StatefulWidget {
|
|
|
class _MyAppState extends State<MyApp> {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- bool ok = pkpy.py_exec(
|
|
|
+ bool ok = pocket.py_exec(
|
|
|
'import sys\nprint(sys.version)'.toNativeUtf8().cast(),
|
|
|
'main.py'.toNativeUtf8().cast(),
|
|
|
py_CompileMode.EXEC_MODE,
|
|
|
Pointer.fromAddress(0));
|
|
|
|
|
|
if (!ok) {
|
|
|
- pkpy.py_printexc();
|
|
|
+ pocket.py_printexc();
|
|
|
}
|
|
|
|
|
|
return MaterialApp(
|