diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-07-02 06:10:08 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-07-02 06:10:08 +0200 |
commit | 7bc68c5bee3741183e4a5b170b8e34ce779bcfff (patch) | |
tree | 246d0c504b0c89610fec2f3fa75b2c546b01c2e3 /examples | |
parent | 37aecdf8a1fda1c21c936c1b94ba15184394fc92 (diff) | |
download | python-linuxnamespaces-7bc68c5bee3741183e4a5b170b8e34ce779bcfff.tar.gz |
fix unschroot_proc.py to work from the examples directory
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/unschroot_proc.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |