Bunch of import optimizations

This commit is contained in:
blitzmann
2018-09-16 00:05:36 -04:00
parent 5c6303995d
commit b4b8a158f5
57 changed files with 260 additions and 365 deletions

View File

@@ -6,13 +6,8 @@ This script will generate a dynamicItemAttributes.json file using res files
import argparse
import os
import re
import sqlite3
import json
from PIL import Image
import os
from shutil import copyfile
parser = argparse.ArgumentParser(description='This script updates module icons for pyfa')

View File

@@ -6,15 +6,13 @@ This script updates only market/item icons.
import argparse
import os
import re
import sqlite3
import json
import os
import sqlite3
from shutil import copyfile
from PIL import Image
from shutil import copyfile
parser = argparse.ArgumentParser(description='This script updates module icons for pyfa')
parser.add_argument('-e', '--eve', required=True, type=str, help='path to eve\'s ')
parser.add_argument('-s', '--server', required=False, default='tq', type=str, help='which server to use (defaults to tq)')

View File

@@ -29,7 +29,6 @@ import argparse
import os.path
import re
import sqlite3
import sys
script_dir = os.path.dirname(__file__)
default_old = os.path.join(script_dir, "..", "eve.db")

View File

@@ -18,10 +18,9 @@
# License along with eos. If not, see <http://www.gnu.org/licenses/>.
#======================================================================
import functools
import os
import sys
import functools
import re
# Add eos root path to sys.path so we can import ourselves
path = os.path.dirname(__file__)
@@ -46,7 +45,6 @@ def main(db, json_path):
eos.config.debug = False
# Now thats done, we can import the eos modules using the config
import eos.db
import eos.gamedata
# Create the database tables

View File

@@ -2,11 +2,11 @@
# Requires eve-old.db file (which is the previous releases database so that we can lookup the old items)
# See https://community.eveonline.com/news/patch-notes/patch-notes-for-july-2017-release
import sys
from os.path import realpath, join, dirname, abspath
from sqlalchemy import MetaData, create_engine
from sqlalchemy.orm import sessionmaker
import csv
import sys
from os.path import abspath, dirname, join, realpath
from sqlalchemy import create_engine
newDB = create_engine('sqlite:///' + unicode(realpath(join(dirname(abspath(__file__)), "..", "eve.db")), sys.getfilesystemencoding()))
oldDB = create_engine('sqlite:///' + unicode(realpath(join(dirname(abspath(__file__)), "..", "eve-old.db")), sys.getfilesystemencoding()))