Import SimpleConfig from electrum if installed
authorSamuel Tardieu <sam@rfc1149.net>
Fri, 7 Sep 2012 09:40:06 +0000 (11:40 +0200)
committerSamuel Tardieu <sam@rfc1149.net>
Fri, 7 Sep 2012 09:40:06 +0000 (11:40 +0200)
electrum

index 1fc039b..32ec670 100755 (executable)
--- a/electrum
+++ b/electrum
@@ -37,12 +37,11 @@ except ImportError:
     sys.exit("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'")
 
 try:
-    from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password
+    from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password, SimpleConfig
 except ImportError:
-    from electrum import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password
+    from electrum import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password, SimpleConfig
 
 from decimal import Decimal
-from lib import SimpleConfig
 
 known_commands = {
     'help':'Prints this help',