From 87a52c234e15d43d8703c149d88fe8564133f1e3 Mon Sep 17 00:00:00 2001 From: Franklyn Tackitt Date: Thu, 12 Dec 2024 15:45:39 -0700 Subject: [PATCH] Only import `msgproto` in buildcommands.py 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. */