Skip to content

Commit f115b8c

Browse files
committed
upip: install(): Accept single package name in addition to a list.
1 parent bf63593 commit f115b8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

upip/upip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def install(to_install, install_path=None):
161161
install_path = get_install_path()
162162
if install_path[-1] != "/":
163163
install_path += "/"
164+
if not isinstance(to_install, list):
165+
to_install = [to_install]
164166
print("Installing to: " + install_path)
165167
# sets would be perfect here, but don't depend on them
166168
installed = []

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy