1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Fix Journal path

This commit is contained in:
Jonathan Harris 2016-09-22 17:26:43 +01:00
parent add254978d
commit 3dcd724104

@ -108,7 +108,7 @@ class Config:
if not isdir(self.plugin_dir):
mkdir(self.plugin_dir)
self.default_journal_dir = join(NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, True)[0], 'Frontier Developments', 'Elite Dangerous', 'Logs') # FIXME: check this
self.default_journal_dir = join(NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, True)[0], 'Frontier Developments', 'Elite Dangerous')
self.home = expanduser('~')
@ -171,11 +171,11 @@ class Config:
# expanduser in Python 2 on Windows doesn't handle non-ASCII - http://bugs.python.org/issue13207
SHGetKnownFolderPath(ctypes.create_string_buffer(FOLDERID_Profile.bytes_le), 0, 0, ctypes.byref(buf))
self.home = buf.value
self.home = buf.value or u'\\'
CoTaskMemFree(buf)
SHGetKnownFolderPath(ctypes.create_string_buffer(FOLDERID_SavedGames.bytes_le), 0, 0, ctypes.byref(buf))
self.default_journal_dir = buf.value
self.default_journal_dir = buf.value and join(buf.value, 'Frontier Developments', 'Elite Dangerous') or None
CoTaskMemFree(buf)
self.respath = dirname(getattr(sys, 'frozen', False) and sys.executable or __file__)