From f6e7645a2f180060ae18a5f3f4b0b7555299b82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 3 Aug 2016 18:22:56 +0200 Subject: [PATCH] fix: run the server as "python3 misp-modules" --- bin/misp-modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/misp-modules b/bin/misp-modules index d25d7dd..011d767 100755 --- a/bin/misp-modules +++ b/bin/misp-modules @@ -160,7 +160,7 @@ class QueryModule(tornado.web.RequestHandler): if __name__ == '__main__': - if os.path.dirname(__file__) is '.': + if os.path.dirname(__file__) in ['.', '']: os.chdir('../') argParser = argparse.ArgumentParser(description='misp-modules server') argParser.add_argument('-t', default=False, action='store_true', help='Test mode')