Skip to content

Commit

Permalink
Only import msgproto in buildcommands.py (#483)
Browse files Browse the repository at this point in the history
This "fixes" needing the fully klippy virtualenv for `make`
  • Loading branch information
kageurufu authored Dec 12, 2024
1 parent 6c028b1 commit b500c38
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 b500c38

Please sign in to comment.