electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e085bcd755d2b90abbb78761a9884bbe35350e68
parent 1b450a23a7da87f1a6e7fbd2a6c0ff16e9c951cf
Author: thomasv <thomasv@gitorious>
Date:   Wed,  6 Jun 2012 15:18:03 +0200

try to import local directory before module

Diffstat:
Melectrum | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/electrum b/electrum @@ -31,10 +31,9 @@ except: sys.exit(1) try: - import electrum -except: - print "Electrum library not found. Importing lib as electrum" import lib as electrum +except: + import electrum from optparse import OptionParser from decimal import Decimal @@ -77,9 +76,15 @@ if __name__ == '__main__': if cmd == 'gui': if options.gui=='gtk': - import electrum.gui as gui + try: + import lib.gui as gui + except: + import electrum.gui as gui elif options.gui=='qt': - import electrum.gui_qt as gui + try: + import lib.gui_qt as gui + except: + import electrum.gui_qt as gui else: print "unknown gui", options.gui exit(1)