Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 71032e3

Browse files
authored
Update install_packets.py
1 parent 04115e7 commit 71032e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Help_functions/install_packets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ def imports():
22
"""Try importing most required modules for this library"""
33
try:
44
import requests
5+
except ImportError as packet:
6+
install([packet.name])
7+
try:
58
import lxml
69
except ImportError as packet:
710
install([packet.name])
811

9-
1012
def install(packets):
1113
import subprocess
1214
for packet in packets:

0 commit comments

Comments
 (0)