Browse Source

Merge pull request #30 from samueltardieu/installation-fixes

Installation fixes
283
Maran H. 13 years ago
parent
commit
af3fe1722b
  1. 5
      electrum
  2. 5
      lib/gui_lite.py
  3. 2
      lib/simple_config.py
  4. 1
      setup.py

5
electrum

@ -37,12 +37,11 @@ except ImportError:
sys.exit("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'") sys.exit("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'")
try: try:
from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password from lib import Wallet, WalletSynchronizer, format_satoshis, mnemonic, prompt_password, SimpleConfig
except ImportError: 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 decimal import Decimal
from lib import SimpleConfig
known_commands = { known_commands = {
'help':'Prints this help', 'help':'Prints this help',

5
lib/gui_lite.py

@ -18,10 +18,7 @@ import webbrowser
import history_widget import history_widget
import util import util
try: import gui_qt
import lib.gui_qt as gui_qt
except ImportError:
import electrum.gui_qt as gui_qt
bitcoin = lambda v: v * 100000000 bitcoin = lambda v: v * 100000000

2
lib/simple_config.py

@ -1,6 +1,6 @@
import json import json
import os import os
from lib.util import user_dir from util import user_dir
class SimpleConfig: class SimpleConfig:
default_options = {"gui": "lite"} default_options = {"gui": "lite"}

1
setup.py

@ -54,6 +54,7 @@ setup(name = "Electrum",
'electrum.pyqrnative', 'electrum.pyqrnative',
'electrum.qrscanner', 'electrum.qrscanner',
'electrum.history_widget', 'electrum.history_widget',
'electrum.simple_config',
'electrum.bmp', 'electrum.bmp',
'electrum.msqr', 'electrum.msqr',
'electrum.util', 'electrum.util',

Loading…
Cancel
Save