python: Fix several pep8 whitespace errors.
[cascardo/ovs.git] / python / ovs / dirs.py
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
7 # Note that the use of """ is to aid in dealing with paths with quotes in them.
8 PKGDATADIR = os.environ.get("OVS_PKGDATADIR", """/usr/local/share/openvswitch""")
9 RUNDIR = os.environ.get("OVS_RUNDIR", """/var/run""")
10 LOGDIR = os.environ.get("OVS_LOGDIR", """/usr/local/var/log""")
11 BINDIR = os.environ.get("OVS_BINDIR", """/usr/local/bin""")
12
13 DBDIR = os.environ.get("OVS_DBDIR")
14 if not DBDIR:
15     sysconfdir = os.environ.get("OVS_SYSCONFDIR")
16     if sysconfdir:
17         DBDIR = "%s/openvswitch" % sysconfdir
18     else:
19         DBDIR = """/usr/local/etc/openvswitch"""