electrum

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

commit 4494ac8ccc82a8559428dfdcc42815b07c563485
parent 4e5dfbeade64b7004e798114dfdd0300e8cdda35
Author: genjix <genjix@night.(none)>
Date:   Sat,  7 Jul 2012 17:59:02 +0100

Create locale/ directory when making i18n files.

Diffstat:
Mmki18n.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mki18n.py b/mki18n.py @@ -32,7 +32,12 @@ cmd = 'xgettext -s --no-wrap -f app.fil --output=locale/messages.pot' print cmd os.system(cmd) -f = open('locale/messages.pot','r') +# Make locale directory if doesn't exist +try: + os.mkdir('locale') +except OSError: + pass +f = open(os.path.join('locale', 'messages.pot'),'r') s = f.read() f.close() s = s.replace('CHARSET', 'utf-8')