mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-13 02:07:47 +08:00
Move up update_modules to avoid segfault in #54
This commit is contained in:
parent
e602abcbe8
commit
7aee4265c0
1 changed files with 18 additions and 22 deletions
40
bazarr.py
40
bazarr.py
|
@ -7,28 +7,7 @@ import os
|
|||
import sys
|
||||
sys.path.insert(0,os.path.join(os.path.dirname(__file__), 'libs/'))
|
||||
|
||||
from bottle import route, run, template, static_file, request, redirect, response
|
||||
import bottle
|
||||
bottle.debug(True)
|
||||
bottle.TEMPLATES.clear()
|
||||
|
||||
bottle.TEMPLATE_PATH.insert(0,os.path.join(os.path.dirname(__file__), 'views/'))
|
||||
|
||||
import sqlite3
|
||||
from json import dumps
|
||||
import itertools
|
||||
import operator
|
||||
import requests
|
||||
import pycountry
|
||||
import pretty
|
||||
from datetime import datetime, timedelta
|
||||
from PIL import Image
|
||||
from io import BytesIO
|
||||
from fdsend import send_file
|
||||
import urllib
|
||||
import math
|
||||
import ast
|
||||
|
||||
from init_db import *
|
||||
from update_db import *
|
||||
|
||||
|
@ -46,7 +25,6 @@ if log_level is None:
|
|||
log_level = "INFO"
|
||||
log_level = getattr(logging, log_level)
|
||||
|
||||
|
||||
class OneLineExceptionFormatter(logging.Formatter):
|
||||
def formatException(self, exc_info):
|
||||
"""
|
||||
|
@ -78,6 +56,24 @@ configure_logging()
|
|||
|
||||
from update_modules import *
|
||||
|
||||
from bottle import route, run, template, static_file, request, redirect, response
|
||||
import bottle
|
||||
bottle.TEMPLATE_PATH.insert(0,os.path.join(os.path.dirname(__file__), 'views/'))
|
||||
|
||||
from json import dumps
|
||||
import itertools
|
||||
import operator
|
||||
import requests
|
||||
import pycountry
|
||||
import pretty
|
||||
from datetime import datetime, timedelta
|
||||
from PIL import Image
|
||||
from io import BytesIO
|
||||
from fdsend import send_file
|
||||
import urllib
|
||||
import math
|
||||
import ast
|
||||
|
||||
from get_languages import *
|
||||
from get_providers import *
|
||||
|
||||
|
|
Loading…
Reference in a new issue