diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-11 17:37:04 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-11 17:37:04 +1000 |
| commit | dc855e1b01e9b4526927b8bd69daca733afd97c2 (patch) | |
| tree | 38adb17eb316e92d70b64df6824d3ad91901028f /src/caelestia/subcommands | |
| parent | parser: print help when no args (diff) | |
| download | caelestia-cli-dc855e1b01e9b4526927b8bd69daca733afd97c2.tar.gz caelestia-cli-dc855e1b01e9b4526927b8bd69daca733afd97c2.tar.bz2 caelestia-cli-dc855e1b01e9b4526927b8bd69daca733afd97c2.zip | |
internal: refactor scheme
Also use a single file to store scheme data
Diffstat (limited to 'src/caelestia/subcommands')
| -rw-r--r-- | src/caelestia/subcommands/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/caelestia/subcommands/shell.py b/src/caelestia/subcommands/shell.py index 2d8d14e..25a39d8 100644 --- a/src/caelestia/subcommands/shell.py +++ b/src/caelestia/subcommands/shell.py @@ -1,7 +1,7 @@ import subprocess from argparse import Namespace -from caelestia import data +from caelestia.utils import paths class Command: @@ -25,7 +25,7 @@ class Command: self.shell() def shell(self, *args: list[str]) -> str: - return subprocess.check_output(["qs", "-p", data.c_data_dir / "shell", *args], text=True) + return subprocess.check_output(["qs", "-p", paths.c_data_dir / "shell", *args], text=True) def print_ipc(self) -> None: print(self.shell("ipc", "show"), end="") |