1
0
mirror of https://github.com/gryf/weechat-replacer.git synced 2026-04-26 03:01:34 +02:00

Calculate weechat home using string_eval_path_home.

Using different path for the weechat configuration results in inability
to find right replacemenet_map json file. Fix it by using
string_eval_path_home method, which will return right weechat config
directory.
This commit is contained in:
2020-11-02 20:22:33 +01:00
parent 943aec432f
commit 7fe8df4c56
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -66,6 +66,9 @@ class Weechat(object):
def _set_position(self, val):
self.position = val
def string_eval_path_home(self, path, pointers, extra_vars, options):
return path
weechat = Weechat()
sys.modules['weechat'] = weechat