[MERGE] forward port of branch saas-3 up to 309ca4f
authorChristophe Simonis <chs@odoo.com>
Fri, 24 Oct 2014 15:25:19 +0000 (17:25 +0200)
committerChristophe Simonis <chs@odoo.com>
Fri, 24 Oct 2014 15:25:19 +0000 (17:25 +0200)
openerp/tools/config.py

index 49fbd95..0e5cecb 100644 (file)
@@ -363,8 +363,8 @@ class configmanager(object):
             "the i18n-export option cannot be used without the database (-d) option")
 
         # Check if the config file exists (-c used, but not -s)
-        die(not opt.save and opt.config and not os.path.exists(opt.config),
-            "The config file '%s' selected with -c/--config doesn't exist, "\
+        die(not opt.save and opt.config and not os.access(opt.config, os.R_OK),
+            "The config file '%s' selected with -c/--config doesn't exist or is not readable, "\
             "use -s/--save if you want to generate it"% opt.config)
 
         # place/search the config file on Win32 near the server installation