summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/vpp_papi
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/python/vpp_papi')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_papi.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py
index 8dcd63a0c55..f29c250744d 100644
--- a/src/vpp-api/python/vpp_papi/vpp_papi.py
+++ b/src/vpp-api/python/vpp_papi/vpp_papi.py
@@ -212,9 +212,6 @@ class VPPApiClient(object):
loglevel, if supplied, is the log level this logger is set
to report at (from the loglevels in the logging module).
"""
- if apifiles is None and self.__class__.apidir is None:
- raise ValueError("Either apifiles or apidir must be specified.")
-
if logger is None:
logger = logging.getLogger(__name__)
if loglevel is not None:
@@ -292,7 +289,7 @@ class VPPApiClient(object):
:returns: A single directory name, or None if no such directory
could be found.
"""
- dirs = [cls.apidir]
+ dirs = [cls.apidir] if cls.apidir else []
# perhaps we're in the 'src/scripts' or 'src/vpp-api/python' dir;
# in which case, plot a course to likely places in the src tree