build: fix python load paths

Fixed python load paths so that vppcfg will work installed as python
library and standalone from the source directory, fixing load
pathes for resources such as yaml files along the way.

Added a make target for pylint called 'make check-style', fixed a
number of minor pylint issues along the way.

Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
This commit is contained in:
Ray Kinsella
2022-07-12 15:32:23 +01:00
parent ca0897fa65
commit 9f2ef0e56a
26 changed files with 146 additions and 72 deletions

View File

@ -19,14 +19,14 @@ metadata, and plan configuration changes towards a given YAML target configurati
"""
import sys
import logging
from config import loopback
from config import interface
from config import bondethernet
from config import bridgedomain
from config import vxlan_tunnel
from config import lcp
from config import tap
from vpp.vppapi import VPPApi
from vppcfg.config import loopback
from vppcfg.config import interface
from vppcfg.config import bondethernet
from vppcfg.config import bridgedomain
from vppcfg.config import vxlan_tunnel
from vppcfg.config import lcp
from vppcfg.config import tap
from .vppapi import VPPApi
class Reconciler: