kopia lustrzana https://github.com/micropython/micropython-lib
upip: install(): Accept single package name in addition to a list.
rodzic
bf63593305
commit
f115b8c22f
|
@ -161,6 +161,8 @@ def install(to_install, install_path=None):
|
||||||
install_path = get_install_path()
|
install_path = get_install_path()
|
||||||
if install_path[-1] != "/":
|
if install_path[-1] != "/":
|
||||||
install_path += "/"
|
install_path += "/"
|
||||||
|
if not isinstance(to_install, list):
|
||||||
|
to_install = [to_install]
|
||||||
print("Installing to: " + install_path)
|
print("Installing to: " + install_path)
|
||||||
# sets would be perfect here, but don't depend on them
|
# sets would be perfect here, but don't depend on them
|
||||||
installed = []
|
installed = []
|
||||||
|
|
Ładowanie…
Reference in New Issue