From a540b182585f8448ee833252933734e712cea42c Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 14 Jun 2016 04:24:37 +0200 Subject: [PATCH] Fixed a bug introduced by previous commit if started from the current directory. --- bin/misp-modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/misp-modules.py b/bin/misp-modules.py index 08e585b..e9f1944 100755 --- a/bin/misp-modules.py +++ b/bin/misp-modules.py @@ -110,7 +110,8 @@ class QueryModule(tornado.web.RequestHandler): 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.add_argument('-t', default=False, action='store_true', help='Test mode') argParser.add_argument('-p', default=6666, help='misp-modules TCP port (default 6666)')