diff --git a/index.py b/index.py index 2a74e8a82e2e9d139a1aeca2317a63ea1840b813..8c4da040cc47ee0ba78ff73cfc839c79ff5a4a89 100644 --- a/index.py +++ b/index.py @@ -5,7 +5,7 @@ import os import json from flask import Flask, render_template, url_for, request, redirect, make_response, session, Response -os.chdir('/usr/lib/uos-sysmig-server') +os.chdir('/usr/lib/migration-tools-server') from connect_sql import * from logger import * from sysmig_agent.share import getSysMigConf @@ -14,14 +14,12 @@ from views.migration import * from views.server import * from flask_cors import CORS - # import MySQLdb -os.chdir('/usr/lib/uos-sysmig-server') +os.chdir('/usr/lib/migration-tools-server') app = Flask(__name__) migration_log = Logger('/var/tmp/uos-migration/migration.log', logging.DEBUG, logging.DEBUG) CORS(app, resources=r'/*') - mods = { 'import_host_info': import_host_info, 'host_info_display': host_info_display, @@ -47,7 +45,6 @@ mods = { 'modify_task_status': modify_task_status } - def check_methods(): if request.method == 'POST': data = request.get_data()