mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
Fix the following pep8 errors:
E201 whitespace after '('
E203 whitespace before ','
E222 multiple spaces after operator
E225 missing whitespace around operator
E226 missing whitespace around arithmetic operator
E231 missing whitespace after ':'
E241 multiple spaces after ':'
E251 unexpected spaces around keyword / parameter equals
E261 at least two spaces before inline comment
E262 inline comment should start with '# '
E265 block comment should start with '# '
E271 multiple spaces after keyword
Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
20 lines
791 B
Python
20 lines
791 B
Python
# 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.
|
|
#
|
|
import os
|
|
|
|
# Note that the use of """ is to aid in dealing with paths with quotes in them.
|
|
PKGDATADIR = os.environ.get("OVS_PKGDATADIR", """/usr/local/share/openvswitch""")
|
|
RUNDIR = os.environ.get("OVS_RUNDIR", """/var/run""")
|
|
LOGDIR = os.environ.get("OVS_LOGDIR", """/usr/local/var/log""")
|
|
BINDIR = os.environ.get("OVS_BINDIR", """/usr/local/bin""")
|
|
|
|
DBDIR = os.environ.get("OVS_DBDIR")
|
|
if not DBDIR:
|
|
sysconfdir = os.environ.get("OVS_SYSCONFDIR")
|
|
if sysconfdir:
|
|
DBDIR = "%s/openvswitch" % sysconfdir
|
|
else:
|
|
DBDIR = """/usr/local/etc/openvswitch"""
|