diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-04 21:54:12 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-04 21:54:12 +0200 |
commit | b9897784e75ea835d9f2d8149c0abd1b9365092e (patch) | |
tree | 428b13edf5cccf29a89fddf3f9f933d9d2ae4e42 /wee_slack.py | |
parent | 6d1e8945d34d451c5e6b2d0a34d771d325ab2519 (diff) | |
download | wee-slack-b9897784e75ea835d9f2d8149c0abd1b9365092e.tar.gz |
Use weechat.string_eval_path_home to eval files_download_location
This expands %h for us, so we don't have to do it ourselves. It also
expands ~ and eval expressions.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 8f0f03e..a1481f7 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2893,7 +2893,7 @@ def download_files(message_json, **kwargs): download_location = config.files_download_location if not download_location: return - download_location = download_location.replace("%h", w.info_get("weechat_dir", "")) + download_location = w.string_eval_path_home(download_location, {}, {}, {}) if not os.path.exists(download_location): try: |