mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Note about __main__.py with +launch
This commit is contained in:
parent
2a361d1de1
commit
135818f34b
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ def launch(args: List[str]) -> None:
|
|||
raise SystemExit(
|
||||
'usage: kitty +launch script.py [arguments to be passed to script.py ...]\n\n'
|
||||
'script.py will be run with full access to kitty code. If script.py is '
|
||||
'prefixed with a : it will be searched for in PATH'
|
||||
'prefixed with a : it will be searched for in PATH. If script.py is a directory '
|
||||
'the __main__.py file inside it is run just as with the normal Python interpreter.'
|
||||
)
|
||||
if exe.startswith(':'):
|
||||
import shutil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue