Files
purple-electrumwallet/lib/wallet_factory.py
T

12 lines
388 B
Python
Raw Normal View History

2013-01-07 16:03:03 +00:00
class WalletFactory(object):
def __new__(cls, config):
if config.get('bitkey', False):
# if user requested support for Bitkey device,
# import Bitkey driver
from wallet_bitkey import WalletBitkey
return WalletBitkey(config)
# Load standard wallet
from wallet import Wallet
return Wallet(config)