Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / python / ovs / dirs.py.template
1 ## The @variables@ in this file are replaced by default directories for
2 ## use in python/ovs/dirs.py in the source directory and replaced by the
3 ## configured directories for use in the installed python/ovs/dirs.py.
4 ##
5 import os
6 PKGDATADIR = os.environ.get("OVS_PKGDATADIR", """@pkgdatadir@""")
7 RUNDIR = os.environ.get("OVS_RUNDIR", """@RUNDIR@""")
8 LOGDIR = os.environ.get("OVS_LOGDIR", """@LOGDIR@""")
9 BINDIR = os.environ.get("OVS_BINDIR", """@bindir@""")
10
11 DBDIR = os.environ.get("OVS_DBDIR")
12 if not DBDIR:
13     sysconfdir = os.environ.get("OVS_SYSCONFDIR")
14     if sysconfdir:
15         DBDIR = "%s/openvswitch" % sysconfdir
16     else:
17         DBDIR = """@DBDIR@"""