From e7498fa2415259e16938124d733c606c53c4eed8 Mon Sep 17 00:00:00 2001 From: lf Date: Tue, 16 Oct 2018 10:21:18 -0600 Subject: [PATCH] chelper: Add a quick __main__ to compile c helper (#782) Signed-off-by: Lucas Fink --- klippy/chelper/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py index 4b0225ca..567807fa 100644 --- a/klippy/chelper/__init__.py +++ b/klippy/chelper/__init__.py @@ -180,3 +180,7 @@ def run_hub_ctrl(enable_power): hubdir = os.path.join(srcdir, HC_SOURCE_DIR) check_build_code(hubdir, HC_TARGET, HC_SOURCE_FILES, HC_COMPILE_CMD) os.system(HC_CMD % (hubdir, enable_power)) + + +if __name__ == '__main__': + get_ffi()