File fix-pyasn-data-path.patch of Package opensnitch

--- a/ui/opensnitch/utils/__init__.py
+++ b/ui/opensnitch/utils/__init__.py
@@ -53,11 +53,12 @@ class AsnDB():
             # if the user hasn't downloaded an updated ipasn db, use the one
             # shipped with the python3-pyasn package
             if os.path.isfile(IPASN_DB_PATH) == False:
-                IPASN_DB_PATH = '/usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz'
+                IPASN_DB_PATH = '/usr/share/pyasn-data/ipasn_db.dat.gz'
             if os.path.isfile(AS_NAMES_FILE_PATH) == False:
-                AS_NAMES_FILE_PATH = '/usr/lib/python3/dist-packages/data/asnames.json'
+                AS_NAMES_FILE_PATH = '/usr/share/pyasn-data/asnames.json.gz'
 
             print("using IPASN DB:", IPASN_DB_PATH)
+            print("using AS NAMES:", AS_NAMES_FILE_PATH)
             self.asndb = pyasn.pyasn(IPASN_DB_PATH, as_names_file=AS_NAMES_FILE_PATH)
         except Exception as e:
             self.ASN_AVAILABLE = False
openSUSE Build Service is sponsored by