create locale
authorthomasv <thomasv@gitorious>
Wed, 30 May 2012 12:56:35 +0000 (14:56 +0200)
committerthomasv <thomasv@gitorious>
Wed, 30 May 2012 12:56:35 +0000 (14:56 +0200)
setup.py

index 509d410..e0b4591 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,9 @@ data_files=[
     ('/usr/share/app-install/icons/',['electrum.png'])
     ]
 
+if not os.path.exists('locale'):
+    os.mkdir('locale')
+
 for lang in os.listdir('locale'):
     if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang):
         data_files.append(  ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )