Merge pull request #33 from Rafiot/master

fix: run the server as "python3 misp-modules"
pull/37/head
Raphaël Vinot 2016-08-03 18:27:00 +02:00 committed by GitHub
commit e2988e88ca
1 changed files with 1 additions and 1 deletions

View File

@ -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')