mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Also initialize Epic LFS on Linux
This commit is contained in:
parent
547ea4a2d4
commit
da757ac18e
|
@ -46,16 +46,11 @@ class LegendaryCore:
|
||||||
self.log = logging.getLogger('Core')
|
self.log = logging.getLogger('Core')
|
||||||
self.egs = EPCAPI()
|
self.egs = EPCAPI()
|
||||||
self.lgd = LGDLFS()
|
self.lgd = LGDLFS()
|
||||||
|
self.egl = EPCLFS()
|
||||||
|
|
||||||
self.local_timezone = datetime.now().astimezone().tzinfo
|
self.local_timezone = datetime.now().astimezone().tzinfo
|
||||||
self.language_code, self.country_code = ('en', 'US')
|
self.language_code, self.country_code = ('en', 'US')
|
||||||
|
|
||||||
# epic lfs only works on Windows right now
|
|
||||||
if os.name == 'nt':
|
|
||||||
self.egl = EPCLFS()
|
|
||||||
else:
|
|
||||||
self.egl = None
|
|
||||||
|
|
||||||
def get_locale(self):
|
def get_locale(self):
|
||||||
locale = self.lgd.config.get('Legendary', 'locale', fallback=getdefaultlocale()[0])
|
locale = self.lgd.config.get('Legendary', 'locale', fallback=getdefaultlocale()[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue