tfix import from lib - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8dd3e95708592cf81b28ba3013299ddfe9d6b6b5 DIR parent 7e0dba3e824f6b973bdcaf95c3be26d7c505f926 HTML Author: thomasv <thomasv@gitorious> Date: Thu, 7 Jun 2012 14:13:51 +0200 fix import from lib Diffstat: M electrum | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -31,13 +31,12 @@ except: sys.exit(1) try: - import lib as electrum + from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic except: - import electrum + from electrum import Wallet, WalletSynchronizer, format_satoshis, mnemonic from optparse import OptionParser from decimal import Decimal -from electrum import Wallet, WalletSynchronizer, format_satoshis known_commands = { 'help':'print help', t@@ -135,7 +134,7 @@ if __name__ == '__main__': import electrum.gui as gui elif options.gui=='qt': try: - import lib.gui_qt as gui + import lib.gui_qt as gui except: import electrum.gui_qt as gui else: t@@ -171,7 +170,6 @@ if __name__ == '__main__': sys.exit(0) if cmd in ['create', 'restore']: - from electrum import mnemonic if wallet.file_exists: print "remove the existing wallet first!" sys.exit(0) t@@ -293,7 +291,6 @@ if __name__ == '__main__': print known_commands[cmd2] elif cmd == 'seed': - from electrum import mnemonic seed = wallet.pw_decode( wallet.seed, password) print seed + ' "' + ' '.join(mnemonic.mn_encode(seed)) + '"'