mirror of https://github.com/MISP/misp-modules
fix: run the server as "python3 misp-modules"
parent
a27113db4d
commit
f6e7645a2f
|
@ -160,7 +160,7 @@ class QueryModule(tornado.web.RequestHandler):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if os.path.dirname(__file__) is '.':
|
if os.path.dirname(__file__) in ['.', '']:
|
||||||
os.chdir('../')
|
os.chdir('../')
|
||||||
argParser = argparse.ArgumentParser(description='misp-modules server')
|
argParser = argparse.ArgumentParser(description='misp-modules server')
|
||||||
argParser.add_argument('-t', default=False, action='store_true', help='Test mode')
|
argParser.add_argument('-t', default=False, action='store_true', help='Test mode')
|
||||||
|
|
Loading…
Reference in New Issue