Switch the python scripts to using @LXCPATH@.
According to grep, this was the last occurence of a /var/*/lxc
path in the code.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/legacy/lxc-ls
src/python-lxc/Makefile
+ src/python-lxc/lxc/__init__.py
+ src/python-lxc/examples/api_test.py
src/tests/Makefile
import sys
# Some constants
-LXC_PATH_LIB = "/var/lib/lxc"
+LXC_PATH_LIB = "@LXCPATH@"
LXC_TEMPLATE = "ubuntu"
# Let's pick a random name, avoiding clashes
List the containers on the system.
"""
containers = []
- for entry in glob.glob("/var/lib/lxc/*/config"):
+ for entry in glob.glob("@LXCPATH@/*/config"):
if as_object:
containers.append(Container(entry.split("/")[-2]))
else: