tdon't use load_module in make_packages - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 0a80f84e2ee173c8c6c6262511c971135b81a41b DIR parent 39c2bc5b7a46ae3a22bd910b870d66628cb13049 HTML Author: ThomasV <thomasv@gitorious> Date: Mon, 23 Feb 2015 08:15:35 +0100 don't use load_module in make_packages Diffstat: M contrib/make_packages | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- DIR diff --git a/contrib/make_packages b/contrib/make_packages t@@ -6,11 +6,11 @@ import getpass if __name__ == '__main__': - os.chdir(os.path.dirname(os.path.realpath(__file__))) - os.chdir('..') - - imp.load_module('electrum', *imp.find_module('../lib')) - from electrum.version import ELECTRUM_VERSION as version + d = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) + os.chdir(d) + v = imp.load_source('version', 'lib/version.py') + version = v.ELECTRUM_VERSION + print "version", version # copy dependencies into 'packages' directory deps = [