From 7bc68c5bee3741183e4a5b170b8e34ce779bcfff Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 2 Jul 2025 06:10:08 +0200 Subject: fix unschroot_proc.py to work from the examples directory --- examples/unschroot_proc.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/unschroot_proc.py') diff --git a/examples/unschroot_proc.py b/examples/unschroot_proc.py index 271a898..5894680 100755 --- a/examples/unschroot_proc.py +++ b/examples/unschroot_proc.py @@ -37,6 +37,9 @@ import uuid import platformdirs +if __file__.split("/")[-2:-1] == ["examples"]: + sys.path.insert(0, "/".join(__file__.split("/")[:-2])) + import asyncvarlink import asyncvarlink.serviceinterface import linuxnamespaces -- cgit v1.2.3