From 01d9e5388a09345a85dac844017f76a7a6247cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 14 Jun 2016 11:07:39 +0900 Subject: [PATCH] Automatic chdir when the modules are started --- bin/misp-modules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/misp-modules.py b/bin/misp-modules.py index 53e0a47..08e585b 100755 --- a/bin/misp-modules.py +++ b/bin/misp-modules.py @@ -110,6 +110,7 @@ class QueryModule(tornado.web.RequestHandler): if __name__ == '__main__': + 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') argParser.add_argument('-p', default=6666, help='misp-modules TCP port (default 6666)')