Merge pull request #1124 from StinGer-ShoGuN/PR_01

Default HTML export to pyfa save path, and allow override of database file path
This commit is contained in:
Ryan Holmes
2017-04-14 00:31:59 -04:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -96,7 +96,9 @@ def defPaths(customSavePath):
# The database where the static EVE data from the datadump is kept.
# This is not the standard sqlite datadump but a modified version created by eos
# maintenance script
gameDB = os.path.join(pyfaPath, "eve.db")
gameDB = getattr(configforced, "gameDB", gameDB)
if not gameDB:
gameDB = os.path.join(pyfaPath, "eve.db")
# DON'T MODIFY ANYTHING BELOW
import eos.config

View File

@@ -263,7 +263,7 @@ class HTMLExportSettings(object):
def __init__(self):
serviceHTMLExportDefaultSettings = {
"path" : config.pyfaPath + os.sep + 'pyfaFits.html',
"path" : config.savePath + os.sep + 'pyfaFits.html',
"minimal": False
}
self.serviceHTMLExportSettings = SettingsProvider.getInstance().getSettings(