Skip to content
Snippets Groups Projects
list_modules 431 B
Newer Older
#!/bin/zsh
# TODO change to a pure python3 script installed with setup.py as an entrypoint
# vim: set shiftwidth=4 softtabstop=4:

# Create the file odoo_modules_list from setup.cfg

# template version 2.7

project_home=$PWD
python3 -B -c "import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print(','.join(c.get('odoo_scripts', 'module_list').split()))" > $project_home/odoo_modules_list