# TODO add a way to bypass the value, maybe with a key in the setup.cfg file
project_home=$(dirname$0)/..
...
...
@@ -5,3 +4,5 @@
# TODO add a way to bypass the value, maybe with a key in the setup.cfg file
project_home=$(dirname$0)/..
repository=$(python -B-c"import ConfigParser ; c = ConfigParser.SafeConfigParser() ; c.read('${project_home}/setup.cfg') ; print (c.has_section('odoo_scripts') and c.has_option('odoo_scripts', 'repository') and c.get('odoo_scripts', 'repository')) or 'dockerhub.xcg.io'")
ODOO_TYPE=$(python -B-c"import ConfigParser ; c = ConfigParser.SafeConfigParser() ; c.read('${project_home}/setup.cfg') ; print (c.has_section('odoo_scripts') and c.has_option('odoo_scripts', 'odoo_type') and c.get('odoo_scripts', 'odoo_type')) or 'odoo8'")