This commit is contained in:
Kovid Goyal 2018-07-24 10:18:37 +05:30
parent 9e044750ce
commit 5485436ea1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 5 deletions

View File

@ -103,7 +103,7 @@ instance of |kitty| using the :option:`kitty @ --to` command line argument to ``
kitty @ --to unix:/tmp/mykitty ls kitty @ --to unix:/tmp/mykitty ls
Note that is all you want to do is run a single |kitty| "daemon" and have subsequent Note that if all you want to do is run a single |kitty| "daemon" and have subsequent
|kitty| invocations appear as new top-level windows, you can use the simpler :option:`kitty --single-instance` |kitty| invocations appear as new top-level windows, you can use the simpler :option:`kitty --single-instance`
option, see ``kitty --help`` for that. option, see ``kitty --help`` for that.

View File

@ -30,7 +30,7 @@ def import_kitten_main_module(config_dir, kitten):
exec(code, g) exec(code, g)
hr = g.get('handle_result', lambda *a, **kw: None) hr = g.get('handle_result', lambda *a, **kw: None)
return {'start': g['main'], 'end': hr} return {'start': g['main'], 'end': hr}
else:
kitten = resolved_kitten(kitten) kitten = resolved_kitten(kitten)
m = importlib.import_module('kittens.{}.main'.format(kitten)) m = importlib.import_module('kittens.{}.main'.format(kitten))
return {'start': m.main, 'end': getattr(m, 'handle_result', lambda *a, **k: None)} return {'start': m.main, 'end': getattr(m, 'handle_result', lambda *a, **k: None)}