fix: Fixed libraries import that changed with the latest merge

pull/304/head
root 2019-05-01 22:26:53 +02:00
parent 92351e6679
commit db74c5f49a
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 4 additions and 1 deletions

View File

@ -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 = []