mirror of
https://github.com/openvswitch/ovs
synced 2025-10-13 14:07:02 +00:00
This makes it possible to run tests that need access to installation directories, such as the rundir, without having access to the actual installation directories (/var/run is generally not world-writable), by setting environment variables. This is not a good way to do things in general--usually it would be better to choose the correct directories at configure time--so for now this is undocumented.
9 lines
364 B
Python
9 lines
364 B
Python
# These are the default directories. They will be replaced by the
|
|
# configured directories at install time.
|
|
|
|
import os
|
|
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")
|