bugfix
This commit is contained in:
parent
dad54583e7
commit
fc6b4df94e
@ -40,15 +40,15 @@ class Script:
|
|||||||
workdir = env['workdir']
|
workdir = env['workdir']
|
||||||
sfile = env['filepath']
|
sfile = env['filepath']
|
||||||
url = env['url']
|
url = env['url']
|
||||||
Logger.info(f'script:workdir={workdir}')
|
print(f'script:workdir={workdir}')
|
||||||
Logger.info(f'script:script_file={sfile}')
|
print(f'script:script_file={sfile}')
|
||||||
Logger.info(f'script:url={url}')
|
print(f'script:url={url}')
|
||||||
sdir = os.path.join(workdir, 'scripts')
|
sdir = os.path.join(workdir, 'scripts')
|
||||||
sf_exists = os.path.isdir(sdir)
|
sf_exists = os.path.isdir(sdir)
|
||||||
conf_f = os.path.join(workdir, 'conf', 'config.json')
|
conf_f = os.path.join(workdir, 'conf', 'config.json')
|
||||||
conf_exists = os.path.isfile(conf_f)
|
conf_exists = os.path.isfile(conf_f)
|
||||||
Logger.info(f'script:script exists {sf_exists}')
|
print(f'script:script exists {sf_exists}')
|
||||||
Logger.info(f'script:config.json exists {conf_exists}')
|
print(f'script:config.json exists {conf_exists}')
|
||||||
|
|
||||||
def dispatch(self, url, **kw):
|
def dispatch(self, url, **kw):
|
||||||
filepath = self.url2filepath(url)
|
filepath = self.url2filepath(url)
|
||||||
@ -60,8 +60,9 @@ class Script:
|
|||||||
env['root_path'] = self.root
|
env['root_path'] = self.root
|
||||||
env['url'] = url
|
env['url'] = url
|
||||||
env['filepath'] = filepath
|
env['filepath'] = filepath
|
||||||
# if platform == 'android':
|
print(f'workdir={env['workdir']}--------')
|
||||||
self.show_info(env)
|
if platform == 'android':
|
||||||
|
self.show_info(env)
|
||||||
|
|
||||||
h = handler(env)
|
h = handler(env)
|
||||||
d = h.render()
|
d = h.render()
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = '0.3.8'
|
__version__ = '0.3.9'
|
||||||
|
Loading…
Reference in New Issue
Block a user