From ef69ffc961d34542d111e07c313cafbc25dfafdf Mon Sep 17 00:00:00 2001 From: lyon Date: Mon, 23 Aug 2021 14:19:49 +0800 Subject: [PATCH] use from import * to support tinyobj and basobj --- src/package/pikascript/PikaObj.py | 6 ++++++ src/package/pikascript/PikaStdLib.py | 1 + src/package/pikascript/main.py | 1 + 3 files changed, 8 insertions(+) create mode 100644 src/package/pikascript/PikaObj.py diff --git a/src/package/pikascript/PikaObj.py b/src/package/pikascript/PikaObj.py new file mode 100644 index 000000000..7c171d21d --- /dev/null +++ b/src/package/pikascript/PikaObj.py @@ -0,0 +1,6 @@ +class TinyObj: + pass + + +class BaseObj(TinyObj): + pass diff --git a/src/package/pikascript/PikaStdLib.py b/src/package/pikascript/PikaStdLib.py index d2426bd51..39f7f6ccc 100644 --- a/src/package/pikascript/PikaStdLib.py +++ b/src/package/pikascript/PikaStdLib.py @@ -1,3 +1,4 @@ +from PikaObj import * class SysObj(BaseObj): def type(argPath: str): pass diff --git a/src/package/pikascript/main.py b/src/package/pikascript/main.py index 83c3cab4e..b9274ed11 100644 --- a/src/package/pikascript/main.py +++ b/src/package/pikascript/main.py @@ -1,4 +1,5 @@ import PikaStdLib +from PikaObj import * class Main(BaseObj):