 $OpenBSD: patch-src_devedeng_configuration_data_py,v 1.2 2015/12/30 13:02:24 ajacoutot Exp $
--- src/devedeng/configuration_data.py.orig	Sat Nov 21 00:09:29 2015
+++ src/devedeng/configuration_data.py	Wed Dec 30 12:12:10 2015
@@ -42,11 +42,8 @@ class configuration(GObject.GObject):
     def fill_config(self):
 
         self.cores = 0
-        proc_file = open("/proc/cpuinfo","r")
-        for line in proc_file:
-            if (line.startswith("processor")):
-                self.cores += 1
-        proc_file.close()
+        if (os.name == "posix"):
+            self.cores = os.cpu_count()
 
         is_local = None
         self.log = ""
@@ -71,7 +68,7 @@ class configuration(GObject.GObject):
         else:
             if (is_local):
                 # locales must be always at /usr/share/locale because Gtk.Builder always search there
-                self.share_locale="/usr/share/locale"
+                self.share_locale="${PREFIX}/share/locale"
                 self.glade="/usr/local/share/devede_ng"
                 self.font_path="/usr/local/share/devede_ng"
                 self.pic_path="/usr/local/share/devede_ng"
