1
0

test the existence of modules in the main script

This commit is contained in:
thomasv
2012-05-14 14:09:50 +02:00
parent 796c992702
commit 1e192e9ca9
2 changed files with 15 additions and 14 deletions

View File

@@ -18,6 +18,19 @@
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
from optparse import OptionParser
from decimal import Decimal