From b500c382cd6bb290a1e9fd003ee10813532750a1 Mon Sep 17 00:00:00 2001 From: Frank Tackitt Date: Thu, 12 Dec 2024 16:38:28 -0700 Subject: [PATCH] Only import `msgproto` in buildcommands.py (#483) This "fixes" needing the fully klippy virtualenv for `make` --- scripts/buildcommands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py index 2c18281fa..6b0e3a02a 100644 --- a/scripts/buildcommands.py +++ b/scripts/buildcommands.py @@ -7,9 +7,10 @@ import sys, os, subprocess, optparse, logging, pathlib, shlex, socket, time import traceback, json, zlib -sys.path.insert(0, str(pathlib.Path(__file__).parent.parent)) +# Directly import msgproto without needing the full klippy environment +sys.path.insert(0, str(pathlib.Path(__file__).parent.parent / "klippy")) -from klippy import msgproto +import msgproto FILEHEADER = """ /* DO NOT EDIT! This is an autogenerated file. See scripts/buildcommands.py. */