 $OpenBSD: patch-src_devedeng_configuration_data_py,v 1.1 2015/06/18 09:03:33 ajacoutot Exp $
--- src/devedeng/configuration_data.py.orig	Sun Apr 26 00:41:09 2015
+++ src/devedeng/configuration_data.py	Thu Jun 18 10:47:14 2015
@@ -42,10 +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
+        if (os.name == "posix"):
+            self.cores = os.cpu_count()
 
         is_local = None
         self.log = ""
@@ -69,7 +67,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"
