Fixed a bug introduced by previous commit if started from the current directory.

pull/29/head
Alexandre Dulaunoy 2016-06-14 04:24:37 +02:00
parent ae357b56c6
commit a540b18258
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ class QueryModule(tornado.web.RequestHandler):
if __name__ == '__main__': if __name__ == '__main__':
os.chdir(os.path.dirname(__file__)) if os.path.dirname(__file__) is not '':
os.chdir(os.path.dirname(__file__))
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')
argParser.add_argument('-p', default=6666, help='misp-modules TCP port (default 6666)') argParser.add_argument('-p', default=6666, help='misp-modules TCP port (default 6666)')