mirror of https://github.com/MISP/PyMISP
Fixing undefined ressources_path
parent
e567ddc877
commit
bd6deba55e
|
@ -53,6 +53,7 @@ class MISPAttribute(object):
|
||||||
|
|
||||||
def __init__(self, describe_types=None):
|
def __init__(self, describe_types=None):
|
||||||
if not describe_types:
|
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:
|
with open(os.path.join(self.ressources_path, 'describeTypes.json'), 'r') as f:
|
||||||
t = json.load(f)
|
t = json.load(f)
|
||||||
describe_types = t['result']
|
describe_types = t['result']
|
||||||
|
|
Loading…
Reference in New Issue