Added multi-file support
This commit is contained in:
11
project/bundle.py
Normal file
11
project/bundle.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# build.py
|
||||
import asyncio
|
||||
from pybricksdev.compile import compile_multi_file
|
||||
|
||||
async def main():
|
||||
result = await compile_multi_file("main.py", 5)
|
||||
with open("main.bin", "wb") as f:
|
||||
f.write(result)
|
||||
print(f"Written {len(result)} bytes to main.bin")
|
||||
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user