[meld] bin/meld: Load libintl differently when frozen



commit aac3a2692bdc4198d92cc003026b8380b8cab6e5
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue Mar 18 05:48:32 2014 +1000

    bin/meld: Load libintl differently when frozen
    
    If running from frozen, we'll use the exact libintl that we've
    included with the binary.

 bin/meld |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index 3690350..893e06c 100755
--- a/bin/meld
+++ b/bin/meld
@@ -95,7 +95,10 @@ except AttributeError:
 try:
     if os.name == 'nt':
         from ctypes import cdll
-        libintl = cdll.intl
+        if frozen:
+            libintl = cdll['libintl-8']
+        else:
+            libintl = cdll.intl
         libintl.bindtextdomain(locale_domain, locale_dir)
         libintl.bind_textdomain_codeset(locale_domain, 'UTF-8')
         del libintl


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]