From db74c5f49a1b5b4ed8200637dc32c9a32a75d1fd Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 May 2019 22:26:53 +0200 Subject: [PATCH] fix: Fixed libraries import that changed with the latest merge --- misp_modules/modules/import_mod/csvimport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misp_modules/modules/import_mod/csvimport.py b/misp_modules/modules/import_mod/csvimport.py index 577229b7..2eec1c6d 100644 --- a/misp_modules/modules/import_mod/csvimport.py +++ b/misp_modules/modules/import_mod/csvimport.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +from collections import defaultdict +import csv +import io import json import os import base64 @@ -162,7 +165,7 @@ class CsvParser(): self.result.append(attribute) def findMispTypes(self): - descFilename = os.path.join(pymisp_path[0], 'data/describeTypes.json') + descFilename = os.path.join(pymisp.__path__[0], 'data/describeTypes.json') with open(descFilename, 'r') as f: MispTypes = json.loads(f.read())['result'].get('types') list2pop = []