Split config.py

This commit is contained in:
DiG 2022-01-17 23:56:27 +01:00
parent 4fbd775936
commit a6ee9c8b2c
3 changed files with 12 additions and 9 deletions

9
config.py Normal file
View File

@ -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())

View File

@ -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 *

View File

@ -3,6 +3,8 @@ import os
import sys
import json
from config import *
def eprint(*args, **kwargs):