commit 2c6608493fc5b0c3e206a8956a242dc01620cbe2
parent 3a9bb3cd438e4eb2f5c46f8ee98c0157f659a362
Author: ThomasV <thomasv@gitorious>
Date: Thu, 14 Aug 2014 12:57:28 +0200
move sys.path addition before imp
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/electrum b/electrum
@@ -30,6 +30,9 @@ import traceback
is_local = os.path.dirname(os.path.realpath(__file__)) == os.getcwd()
is_android = 'ANDROID_DATA' in os.environ
+if is_local:
+ sys.path.append('packages')
+
import __builtin__
__builtin__.use_local_modules = is_local or is_android
@@ -39,9 +42,6 @@ if __builtin__.use_local_modules:
imp.load_module('electrum', *imp.find_module('lib'))
imp.load_module('electrum_gui', *imp.find_module('gui'))
-if is_local:
- sys.path.append('packages')
-
from electrum import util
from electrum import SimpleConfig, Network, Wallet, WalletStorage, NetworkProxy, Commands, known_commands, pick_random_server