1
0

import lib directory as electrum if the library is not installed

This commit is contained in:
thomasv
2012-05-30 16:46:04 +02:00
parent 266bbc876c
commit 735f9b9c20
3 changed files with 10 additions and 10 deletions

View File

@@ -22,9 +22,10 @@ import socket, traceback
import pygtk
pygtk.require('2.0')
import gtk, gobject
from electrum import pyqrnative
from decimal import Decimal
import pyqrnative, mnemonic
gtk.gdk.threads_init()
APP_NAME = "Electrum"
import platform
@@ -59,7 +60,6 @@ def numbify(entry, is_int = False):
def show_seed_dialog(wallet, password, parent):
from electrum import mnemonic
if not wallet.seed:
show_message("No seed")
return
@@ -206,7 +206,6 @@ def run_recovery_dialog(wallet):
try:
seed.decode('hex')
except:
from electrum import mnemonic
print "not hex, trying decode"
seed = mnemonic.mn_decode( seed.split(' ') )
if not seed: