fix import

This commit is contained in:
thomasv 2012-05-11 10:16:39 +02:00
parent 1224610109
commit d68133e0e1
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ if __name__ == '__main__':
sys.exit(0) sys.exit(0)
if cmd in ['create', 'restore']: if cmd in ['create', 'restore']:
import mnemonic from electrum import mnemonic
if wallet.file_exists: if wallet.file_exists:
print "remove the existing wallet first!" print "remove the existing wallet first!"
sys.exit(0) sys.exit(0)
@ -241,7 +241,7 @@ if __name__ == '__main__':
print "Run python eval() on an object\nSyntax: eval <expression>\nExample: eval \"wallet.aliases\"" print "Run python eval() on an object\nSyntax: eval <expression>\nExample: eval \"wallet.aliases\""
elif cmd == 'seed': elif cmd == 'seed':
import mnemonic from electrum import mnemonic
seed = wallet.pw_decode( wallet.seed, password) seed = wallet.pw_decode( wallet.seed, password)
print seed, '"'+' '.join(mnemonic.mn_encode(seed))+'"' print seed, '"'+' '.join(mnemonic.mn_encode(seed))+'"'