diff mbox series

[3/5] bitbake-setup: Add wrapper script for bitbake_setup module

Message ID 20260121024723.2634264-4-rob.woolley@windriver.com
State New
Headers show
Series Package bitbake-setup for PyPI | expand

Commit Message

Rob Woolley Jan. 21, 2026, 2:47 a.m. UTC
This wrapper script is used to support the workflow where
bitbake-setup is invoked from the bitbake git repository.

It uses the directory of the script to find the bitbake_setup
module present in the same git repository.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
 bin/bitbake-setup | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 bin/bitbake-setup
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
new file mode 100755
index 00000000..e1b1cdd1
--- /dev/null
+++ b/bin/bitbake-setup
@@ -0,0 +1,11 @@ 
+#!/usr/bin/env python3
+import os
+import sys
+
+ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+sys.path.insert(0, os.path.join(ROOT,'lib'))
+
+from bitbake_setup.__main__ import main
+
+if __name__ == "__main__":
+    main()