Skip to content

Commit

Permalink
Only import msgproto in buildcommands.py
Browse files Browse the repository at this point in the history
This "fixes" needing the fully klippy virtualenv for `make`
  • Loading branch information
kageurufu committed Dec 12, 2024
1 parent 86d1f55 commit 87a52c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/buildcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 87a52c2

Please sign in to comment.