mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 02:05:19 +00:00
try to detect data/style.css otherwise fallback to arch-indep data dir.
This commit is contained in:
parent
c10bacca28
commit
0b0a6f3657
1 changed files with 3 additions and 3 deletions
|
@ -37,9 +37,9 @@ def resize_line_edit_width(line_edit, text_input):
|
||||||
line_edit.setMinimumWidth(metrics.width(text_input))
|
line_edit.setMinimumWidth(metrics.width(text_input))
|
||||||
|
|
||||||
def cd_data_dir():
|
def cd_data_dir():
|
||||||
try:
|
if os.path.exists(os.path.join("data", "style.css")):
|
||||||
data_dir = os.environ["ELECTRUM_DATA_PATH"]
|
data_dir = os.path.join(".", "data")
|
||||||
except KeyError:
|
else:
|
||||||
data_dir = appdata_dir()
|
data_dir = appdata_dir()
|
||||||
QDir.setCurrent(data_dir)
|
QDir.setCurrent(data_dir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue