32 lines
880 B
Diff
32 lines
880 B
Diff
|
|
diff --git a/chadtree/__main__.py b/chadtree/__main__.py
|
||
|
|
index 83341fc..af8c9b0 100644
|
||
|
|
if command == "deps":
|
||
|
|
@@ -129,7 +129,7 @@ elif command == "run":
|
||
|
|
try:
|
||
|
|
if not _IN_VENV:
|
||
|
|
raise ImportError()
|
||
|
|
- elif lock != _REQ:
|
||
|
|
+ elif False:
|
||
|
|
raise ImportError()
|
||
|
|
else:
|
||
|
|
import pynvim_pp
|
||
|
|
diff --git a/chadtree/consts.py b/chadtree/consts.py
|
||
|
|
index e2d3aa0..e77a129 100644
|
||
|
|
--- a/chadtree/consts.py
|
||
|
|
+++ b/chadtree/consts.py
|
||
|
|
@@ -1,4 +1,5 @@
|
||
|
|
from os import environ, name
|
||
|
|
+from pathlib import Path
|
||
|
|
|
||
|
|
from chad_types import TOP_LEVEL
|
||
|
|
|
||
|
|
@@ -24,7 +25,7 @@ SETTINGS_VAR = "chadtree_settings"
|
||
|
|
STORAGE
|
||
|
|
"""
|
||
|
|
|
||
|
|
-_VARS = TOP_LEVEL / ".vars"
|
||
|
|
+_VARS = Path.home() / ".cache/chadtree/vars"
|
||
|
|
RT_DIR = _VARS / "runtime"
|
||
|
|
RT_PY = RT_DIR / "Scripts" / "python.exe" if IS_WIN else RT_DIR / "bin" / "python3"
|
||
|
|
SESSION_DIR = _VARS / "sessions"
|