Package: powerline / 1.2-2

config_files_path.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Adds Debian configuration path
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758551
Author: Jerome Charaoui <jerome@riseup.net>
Forwarded: not-needed
diff --git a/powerline/__init__.py b/powerline/__init__.py
index 026231b..a73d3e8 100644
--- a/powerline/__init__.py
+++ b/powerline/__init__.py
@@ -147,8 +147,7 @@ def get_config_paths():
 	config_dirs = os.environ.get('XDG_CONFIG_DIRS', DEFAULT_SYSTEM_CONFIG_DIR)
 	if config_dirs is not None:
 		config_paths[:0] = reversed([os.path.join(d, 'powerline') for d in config_dirs.split(':')])
-	plugin_path = os.path.join(os.path.realpath(os.path.dirname(__file__)), 'config_files')
-	config_paths.insert(0, plugin_path)
+	config_paths.insert(0, '/usr/share/powerline/config_files')
 	return config_paths