Here it is:
@g.command('leoserver')
@g.command('proto-leo-server')
def proto_leoserver(event):
"""
Terry's fully functional Leo web interface :-)
First announced here, in a comment to #684:
https://github.com/leo-editor/leo-editor/issues/684#issuecomment-363992724
The code is here:
https://github.com/leo-editor/leo-editor/files/1705639/leoserver.zip
"""
# c = event and event.get('c')
base = g.os_path_finalize_join(g.app.loadDir,
'..', 'proto', 'Terry', 'leoserver')
base = base.replace('\\','/')
if g.os_path_exists(base):
g.es_print('WARNING: killing the server will also kill Leo')
os.chdir(base) # Can't do this in the commands list.
g.execute_shell_commands(commands=['&python leoserver.py',])
else:
g.es_print('not found: %r' % base)
The ampersand in the commands list prevents Leo from hanging.
This rev also adds the ampersand in the proto-leo-el-vue command
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.