mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
...
This commit is contained in:
@@ -523,6 +523,7 @@ class Theme:
|
|||||||
atomic_save(self.raw.encode('utf-8'), os.path.join(dirpath, f'{self.name}.conf'))
|
atomic_save(self.raw.encode('utf-8'), os.path.join(dirpath, f'{self.name}.conf'))
|
||||||
|
|
||||||
def save_in_conf(self, confdir: str, reload_in: str) -> None:
|
def save_in_conf(self, confdir: str, reload_in: str) -> None:
|
||||||
|
os.makedirs(confdir, exist_ok=True)
|
||||||
atomic_save(self.raw.encode('utf-8'), os.path.join(confdir, 'current-theme.conf'))
|
atomic_save(self.raw.encode('utf-8'), os.path.join(confdir, 'current-theme.conf'))
|
||||||
confpath = os.path.realpath(os.path.join(confdir, 'kitty.conf'))
|
confpath = os.path.realpath(os.path.join(confdir, 'kitty.conf'))
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user