mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 06:18:17 +00:00
Change --session to resolve relative paths from the kitty config dir
This commit is contained in:
parent
252288aff2
commit
f15a2f0c1f
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ from .options.types import Options
|
|||
from .options.utils import resize_window, to_layout_names, window_size
|
||||
from .os_window_size import WindowSize, WindowSizeData, WindowSizes
|
||||
from .typing import SpecialWindowInstance
|
||||
from .utils import log_error, resolved_shell
|
||||
from .utils import log_error, resolved_shell, resolve_custom_file
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .launch import LaunchSpec
|
||||
|
|
@ -187,7 +187,7 @@ def create_sessions(
|
|||
if args.session == '-':
|
||||
f = sys.stdin
|
||||
else:
|
||||
f = open(args.session)
|
||||
f = open(resolve_custom_file(args.session))
|
||||
with f:
|
||||
session_data = f.read()
|
||||
yield from parse_session(session_data, opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue