From ce2765afb133fbea5623ebb97af746174c2ddc49 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 15 Nov 2022 07:50:08 +0800 Subject: [PATCH] bugfix --- kivyblocks/script.py | 3 ++- kivyblocks/uitype/__init__.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/script.py b/kivyblocks/script.py index 1d6eb2e..b192f18 100644 --- a/kivyblocks/script.py +++ b/kivyblocks/script.py @@ -29,6 +29,7 @@ class Script: self.root = config.script_root # print('Script.root=', self.root) self.env = {} + self.env['uihome'] = config.uihome self.handlers = {} self.register('.tmpl', TemplateHandler) self.register('.dspy', DspyHandler) @@ -87,7 +88,7 @@ class BaseHandler: return url tokens = url.split('/') if tokens[0] == '': - root = self.env['root_path'] + root = self.env['uihome'] tokens[0] = root return '/'.join(tokens) diff --git a/kivyblocks/uitype/__init__.py b/kivyblocks/uitype/__init__.py index 93d6ded..01458d4 100644 --- a/kivyblocks/uitype/__init__.py +++ b/kivyblocks/uitype/__init__.py @@ -1,6 +1,5 @@ from .factory import * from .date import * -from .time import * from .int import * from .float import * from .amount import *