mirror of https://github.com/MISP/misp-modules
Fixed a bug introduced by previous commit if started from the current directory.
parent
ae357b56c6
commit
a540b18258
|
@ -110,6 +110,7 @@ class QueryModule(tornado.web.RequestHandler):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if os.path.dirname(__file__) is not '':
|
||||
os.chdir(os.path.dirname(__file__))
|
||||
argParser = argparse.ArgumentParser(description='misp-modules server')
|
||||
argParser.add_argument('-t', default=False, action='store_true', help='Test mode')
|
||||
|
|
Loading…
Reference in New Issue