Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 584624
Collapse All | Expand All

(-)a/service/settings.py (-2 / +2 lines)
Lines 21-26 import cPickle Link Here
21
import os.path
21
import os.path
22
import config
22
import config
23
import urllib2
23
import urllib2
24
import sys
24
25
25
class SettingsProvider():
26
class SettingsProvider():
26
    BASE_PATH = os.path.join(config.savePath, "settings")
27
    BASE_PATH = os.path.join(config.savePath, "settings")
Lines 221-227 class HTMLExportSettings(): Link Here
221
        return cls._instance
222
        return cls._instance
222
223
223
    def __init__(self):
224
    def __init__(self):
224
        serviceHTMLExportDefaultSettings = {"enabled": False, "path": config.pyfaPath + os.sep + 'pyfaFits.html', "website": "null-sec.com", "minimal": False }
225
        serviceHTMLExportDefaultSettings = {"enabled": False, "path": unicode(os.path.expanduser(os.path.join('~', 'pyfaFits.html')), sys.getfilesystemencoding()), "website": "null-sec.com" }
225
        self.serviceHTMLExportSettings = SettingsProvider.getInstance().getSettings("pyfaServiceHTMLExportSettings", serviceHTMLExportDefaultSettings)
226
        self.serviceHTMLExportSettings = SettingsProvider.getInstance().getSettings("pyfaServiceHTMLExportSettings", serviceHTMLExportDefaultSettings)
226
227
227
    def getEnabled(self):
228
    def getEnabled(self):
228
- 

Return to bug 584624