mirror of https://github.com/MISP/mail_to_misp
fix: change directory
parent
c300089624
commit
198810105a
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
import re
|
||||
|
@ -329,6 +330,8 @@ if __name__ == '__main__':
|
|||
syslog.openlog(logoption=syslog.LOG_PID, facility=syslog.LOG_USER)
|
||||
syslog.syslog("Job started.")
|
||||
|
||||
os.chdir(Path(__file__).cwd())
|
||||
|
||||
configmodule = Path(__file__).name.replace('.py', '_config')
|
||||
if Path(f'{configmodule}.py').exists():
|
||||
config = importlib.import_module(configmodule)
|
||||
|
|
Loading…
Reference in New Issue