Skip to content

Commit

Permalink
Update passwordManager3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Maneesh-Pradeep authored Apr 30, 2020
1 parent c502713 commit 10d7248
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions passwordManager3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import base64
import json
import threading
import subprocess
import sys
import subprocess

try:
import pandas as pd
Expand All @@ -29,8 +29,13 @@
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
except (ModuleNotFoundError, ImportError) as e:
subprocess.call([sys.executable, "-m", "pip", "install", 'pandas PySimpleGUI pyrebase requests pyperclip cryptography'])
except ModuleNotFoundError:
subprocess.call([sys.executable, "-m", "pip", "install", 'pandas'])
subprocess.call([sys.executable, "-m", "pip", "install", 'pyperclip'])
subprocess.call([sys.executable, "-m", "pip", "install", 'PySimpleGUI'])
subprocess.call([sys.executable, "-m", "pip", "install", 'requests'])
subprocess.call([sys.executable, "-m", "pip", "install", 'pyrebase'])
subprocess.call([sys.executable, "-m", "pip", "install", 'cryptography'])
finally:
import pandas as pd
import PySimpleGUI as sg
Expand Down Expand Up @@ -470,5 +475,6 @@ def clear():
res_window_active = False
window.UnHide()
break



# MIT (c) Maneesh Pradeep

0 comments on commit 10d7248

Please sign in to comment.