upip: install(): Accept single package name in addition to a list.

pull/106/head
Paul Sokolovsky 2016-10-08 00:25:29 +03:00
rodzic bf63593305
commit f115b8c22f
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -161,6 +161,8 @@ def install(to_install, install_path=None):
install_path = get_install_path()
if install_path[-1] != "/":
install_path += "/"
if not isinstance(to_install, list):
to_install = [to_install]
print("Installing to: " + install_path)
# sets would be perfect here, but don't depend on them
installed = []