aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools/digikey_search_parts.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee/tools/digikey_search_parts.py')
-rw-r--r--src/ee/tools/digikey_search_parts.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ee/tools/digikey_search_parts.py b/src/ee/tools/digikey_search_parts.py
index 9f35e33..6cf104d 100644
--- a/src/ee/tools/digikey_search_parts.py
+++ b/src/ee/tools/digikey_search_parts.py
@@ -2,6 +2,7 @@ import argparse
from pathlib import Path
from ee.digikey.search_parts import search_parts
+from ee.project import Project
parser = argparse.ArgumentParser()
@@ -16,6 +17,7 @@ parser.add_argument("--out",
args = parser.parse_args()
-cache_dir = ".ee/cache/digikey"
+project = Project.load()
+cache_dir = project.cache_dir / "digikey"
-search_parts(Path(args.in_path), Path(args.out), Path(cache_dir))
+search_parts(Path(args.in_path), Path(args.out), cache_dir)