diff --git a/config.py b/config.py new file mode 100644 index 0000000..1d42a72 --- /dev/null +++ b/config.py @@ -0,0 +1,9 @@ + +# CONFIG +FOLDER = '/home/dig/odoo-export/datas' +MODEL_IGNORE = [] +with open(".modelignore", "r") as file: + for line in file: + MODEL_IGNORE.append(line.strip()) + + diff --git a/remote.py b/remote.py index b39f953..ea38fcc 100644 --- a/remote.py +++ b/remote.py @@ -14,15 +14,7 @@ import odoorpc # pip install odoorpc from utils import * from renderers import render, tsv - - -# CONFIG -FOLDER = '/home/dig/odoo-export/datas' -MODEL_IGNORE = [] -with open(".modelignore", "r") as file: - for line in file: - MODEL_IGNORE.append(line.strip()) - +from config import * diff --git a/utils.py b/utils.py index 5134908..c800e9f 100644 --- a/utils.py +++ b/utils.py @@ -3,6 +3,8 @@ import os import sys import json +from config import * + def eprint(*args, **kwargs):