aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pythran/patches/01-arcadia.patch
blob: 89af882525ba9934facf967fb23b6ffc99523db9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- contrib/python/pythran/pythran/config.py	(index)
+++ contrib/python/pythran/pythran/config.py	(working tree)
@@ -79,6 +79,9 @@ def init_cfg(sys_file, platform_file, user_file, config_args=None):
     cfgp = ConfigParser()
     for required in (sys_config_path, platform_config_path):
         cfgp.read([required])
+    import pkgutil
+    for required in (sys_config_path, platform_config_path):
+        cfgp.read_string(pkgutil.get_data(__package__, os.path.basename(required)).decode("utf-8"))
 
     if user_config_path:
         cfgp.read([user_config_path])