2025-07-09 17:39:50 +08:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
|
|
|
|
from Convention.Runtime.Config import *
|
2025-07-10 15:08:20 +08:00
|
|
|
from Convention.Runtime.EasySave import *
|
|
|
|
|
|
|
|
class test_log(BaseModel):
|
|
|
|
test_field:int
|
|
|
|
test_field_2:str
|
2025-07-09 17:39:50 +08:00
|
|
|
|
|
|
|
def run():
|
2025-07-10 15:08:20 +08:00
|
|
|
SetInternalDebug(True)
|
|
|
|
SetInternalReflectionDebug(True)
|
|
|
|
SetInternalEasySaveDebug(True)
|
|
|
|
test = test_log(test_field=1,test_field_2="test")
|
|
|
|
EasySave.Write(test,"test.json")
|
2025-07-09 17:39:50 +08:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
run()
|