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 May 4, 2020
1 parent 10d7248 commit 8920cea
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions passwordManager3.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
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'])
subprocess.call([sys.executable, "-m", "pip", "install", 'pandas', 'pyperclip', 'PySimpleGUI', 'requests', 'pyrebase', 'cryptography'])
finally:
import pandas as pd
import PySimpleGUI as sg
Expand Down Expand Up @@ -349,11 +344,8 @@ def clear():
break
if e in 'Generate':
size = sg.PopupGetText("Enter the length of the password : ")
try:
pwd = pass_gen(int(size))
add_window['pwd'](pwd)
except:
pass
pwd = pass_gen(int(size))
add_window['pwd'](pwd)
if event == 'View' and not view_window_active:
view_window_active = True
window.hide()
Expand Down

0 comments on commit 8920cea

Please sign in to comment.