From 3968c872bee897f68df88bb5ca6671dd016555ed Mon Sep 17 00:00:00 2001 From: SeedSigner <65379725+SeedSigner@users.noreply.github.com> Date: Mon, 14 Dec 2020 18:50:33 -0600 Subject: [PATCH] Add files via upload --- seedsigner.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/seedsigner.py b/seedsigner.py index 68ff6468..acda75a0 100644 --- a/seedsigner.py +++ b/seedsigner.py @@ -10,8 +10,10 @@ from PIL import Image from PIL import ImageDraw from PIL import ImageFont -from embit.src.embit.bip39 import mnemonic_to_bytes -from embit.src.embit.bip39 import mnemonic_from_bytes +from embit.bip39 import mnemonic_to_bytes +from embit.bip39 import mnemonic_from_bytes + +from subprocess import call #alphabet reference alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] @@ -809,8 +811,7 @@ def mainmenufunction(): if mainrunstate == 3: print("Option 3 Selected") time.sleep(0.4) - mainrunstate = 0 - displayscreenstate() + call("sudo shutdown --poweroff now", shell=True) #clear the screen upon exit