mirror of https://github.com/MISP/PyMISP
added misp object templates path argument
parent
85bc693a63
commit
716fd2723c
|
@ -814,6 +814,9 @@ class MISPObject(AbstractMISP):
|
|||
super(MISPObject, self).__init__(**kwargs)
|
||||
self.__strict = strict
|
||||
self.name = name
|
||||
if kwargs.get('misp_objects_path', None):
|
||||
self.__misp_objects_path = kwargs.get('misp_objects_path', None)
|
||||
else:
|
||||
self.__misp_objects_path = os.path.join(
|
||||
os.path.abspath(os.path.dirname(sys.modules['pymisp'].__file__)),
|
||||
'data', 'misp-objects', 'objects')
|
||||
|
|
Loading…
Reference in New Issue