From 7deb2f3212c6ff91c733e3faca409e812ffe8e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Sat, 26 Sep 2020 01:10:00 +0200 Subject: [PATCH] ui: fixed python3 system libs path on OpenSuse /usr/lib/python3/dist-packages/ was missing on OpenSuse TumbleWeed. Maybe it's not the best solution, but solves the problem for now. Reported by zaggynl here #59. --- ui/bin/opensnitch-ui | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/bin/opensnitch-ui b/ui/bin/opensnitch-ui index 595ed27631..9f7519e81f 100755 --- a/ui/bin/opensnitch-ui +++ b/ui/bin/opensnitch-ui @@ -15,6 +15,10 @@ from concurrent import futures import grpc +dist_path = '/usr/lib/python3/dist-packages/' +if dist_path not in sys.path: + sys.path.append(dist_path) + from opensnitch.service import UIService from opensnitch.config import Config import opensnitch.version