mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 02:34:12 +01:00
13 lines
424 B
Python
Executable file
13 lines
424 B
Python
Executable file
#!/usr/bin/env python3
|
|
# This script is used in the docker containers to preinstall
|
|
# all platformio libraries in the global storage
|
|
|
|
import configparser
|
|
import subprocess
|
|
import sys
|
|
|
|
config = configparser.ConfigParser(inline_comment_prefixes=(';', ))
|
|
config.read(sys.argv[1])
|
|
libs = [x for x in config['common']['lib_deps'].splitlines() if len(x) != 0]
|
|
|
|
subprocess.check_call(['platformio', 'lib', '-g', 'install', *libs])
|