mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
test the existence of modules in the main script
This commit is contained in:
parent
796c992702
commit
1e192e9ca9
2 changed files with 15 additions and 14 deletions
13
electrum
13
electrum
|
@ -18,6 +18,19 @@
|
||||||
|
|
||||||
import re, sys, getpass
|
import re, sys, getpass
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ecdsa
|
||||||
|
except:
|
||||||
|
print "python-ecdsa does not seem to be installed. Try 'sudo pip install ecdsa'"
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import aes
|
||||||
|
except:
|
||||||
|
print "AES does not seem to be installed. Try 'sudo pip install slowaes'"
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
import electrum
|
import electrum
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
|
@ -18,20 +18,8 @@
|
||||||
|
|
||||||
|
|
||||||
import sys, base64, os, re, hashlib, copy, operator, ast, threading, random
|
import sys, base64, os, re, hashlib, copy, operator, ast, threading, random
|
||||||
|
import slowaes, ecdsa
|
||||||
try:
|
from ecdsa.util import string_to_number, number_to_string
|
||||||
import ecdsa
|
|
||||||
from ecdsa.util import string_to_number, number_to_string
|
|
||||||
except:
|
|
||||||
print "python-ecdsa does not seem to be installed. Try 'sudo pip install ecdsa'"
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
try:
|
|
||||||
import aes
|
|
||||||
except:
|
|
||||||
print "AES does not seem to be installed. Try 'sudo pip install slowaes'"
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
############ functions from pywallet #####################
|
############ functions from pywallet #####################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue