X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fdirs.py;h=5b006cc3e0bca1178efbd2d52d6ba5fb90bf17ad;hb=c50c79431efa7b85688fb4be61d97c5ee7a9c459;hp=f8e73087f5316bdf89075824fc7ecd3f859bcffc;hpb=991559357f6a03c3a5b70c053c8c2554aa8d5ee4;p=openvswitch diff --git a/python/ovs/dirs.py b/python/ovs/dirs.py index f8e73087..5b006cc3 100644 --- a/python/ovs/dirs.py +++ b/python/ovs/dirs.py @@ -1,7 +1,8 @@ # These are the default directories. They will be replaced by the # configured directories at install time. -PKGDATADIR = "/usr/local/share/openvswitch" -RUNDIR = "/var/run" -LOGDIR = "/usr/local/var/log" -BINDIR = "/usr/local/bin" +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")