mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
weboob: add my current patch
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From af07263e514b9aa032b1b7008c90af1f96068611 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Mon, 28 Jul 2014 23:32:25 +0200
|
||||
Subject: [PATCH] Add Haiku-specific user paths
|
||||
|
||||
---
|
||||
weboob/core/ouiboube.py | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/weboob/core/ouiboube.py b/weboob/core/ouiboube.py
|
||||
index c614f30..51ccf94 100644
|
||||
--- a/weboob/core/ouiboube.py
|
||||
+++ b/weboob/core/ouiboube.py
|
||||
@@ -339,6 +339,9 @@ class Weboob(WebNip):
|
||||
datadir = workdir
|
||||
elif 'WEBOOB_WORKDIR' in os.environ:
|
||||
datadir = workdir = os.environ.get('WEBOOB_WORKDIR')
|
||||
+ elif sys.platform[:5] == 'haiku':
|
||||
+ workdir = os.path.join(os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), 'config', 'settings')), 'weboob')
|
||||
+ datadir = os.path.join(os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), 'config', 'non-packaged', 'data')), 'weboob')
|
||||
else:
|
||||
workdir = os.path.join(os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config')), 'weboob')
|
||||
datadir = os.path.join(os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), '.local', 'share')), 'weboob')
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user