2016-01-05 18:16:20 -05:00
|
|
|
# The @variables@ in this file are replaced by default directories for
|
|
|
|
|
# use in python/ovs/dirs.py in the source directory and replaced by the
|
|
|
|
|
# configured directories for use in the installed python/ovs/dirs.py.
|
|
|
|
|
#
|
2012-08-02 16:01:49 -07:00
|
|
|
import os
|
2016-01-05 18:16:20 -05:00
|
|
|
|
|
|
|
|
# Note that the use of """ is to aid in dealing with paths with quotes in them.
|
2012-08-02 16:01:49 -07:00
|
|
|
PKGDATADIR = os.environ.get("OVS_PKGDATADIR", """@pkgdatadir@""")
|
|
|
|
|
RUNDIR = os.environ.get("OVS_RUNDIR", """@RUNDIR@""")
|
|
|
|
|
LOGDIR = os.environ.get("OVS_LOGDIR", """@LOGDIR@""")
|
|
|
|
|
BINDIR = os.environ.get("OVS_BINDIR", """@bindir@""")
|
|
|
|
|
|
|
|
|
|
DBDIR = os.environ.get("OVS_DBDIR")
|
|
|
|
|
if not DBDIR:
|
|
|
|
|
sysconfdir = os.environ.get("OVS_SYSCONFDIR")
|
|
|
|
|
if sysconfdir:
|
|
|
|
|
DBDIR = "%s/openvswitch" % sysconfdir
|
|
|
|
|
else:
|
|
|
|
|
DBDIR = """@DBDIR@"""
|