Merge pull request #99 from edhoedt/patch-1

Fixing undefined ressources_path
pull/100/head
Raphaël Vinot 2017-07-27 16:02:27 +02:00 committed by GitHub
commit 0c86d489b6
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class MISPAttribute(object):
def __init__(self, describe_types=None):
if not describe_types:
self.ressources_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')
with open(os.path.join(self.ressources_path, 'describeTypes.json'), 'r') as f:
t = json.load(f)
describe_types = t['result']