mirror of https://github.com/MISP/misp-modules
fix: Fixed libraries import that changed with the latest merge
parent
92351e6679
commit
db74c5f49a
|
@ -1,4 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
from collections import defaultdict
|
||||||
|
import csv
|
||||||
|
import io
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import base64
|
import base64
|
||||||
|
@ -162,7 +165,7 @@ class CsvParser():
|
||||||
self.result.append(attribute)
|
self.result.append(attribute)
|
||||||
|
|
||||||
def findMispTypes(self):
|
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:
|
with open(descFilename, 'r') as f:
|
||||||
MispTypes = json.loads(f.read())['result'].get('types')
|
MispTypes = json.loads(f.read())['result'].get('types')
|
||||||
list2pop = []
|
list2pop = []
|
||||||
|
|
Loading…
Reference in New Issue