File: fix-incorrect-directory-creation.patch

package info (click to toggle)
waymore 3.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,832 kB
  • sloc: python: 2,358; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 1,062 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Aquila Macedo <aquilamacedo@riseup.net>
Date: Sat, 16 Mar 2024 23:00:21 -0300
Subject: Fix incorrect directory creation
Origin: https://github.com/xnl-h4ck3r/waymore/commit/7e3829276166c36d15e95d88af9444b376f91ff8
Applied-Upstream: https://github.com/xnl-h4ck3r/waymore/commit/7e3829276166c36d15e95d88af9444b376f91ff8

Changed DEFAULT_OUTPUT_DIR to os.path.expanduser('~/.config/waymore')
to ensure proper directory creation if another error has occurred.
---
 waymore/waymore.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/waymore/waymore.py b/waymore/waymore.py
index 1648e4e..3640584 100644
--- a/waymore/waymore.py
+++ b/waymore/waymore.py
@@ -613,7 +613,7 @@ def getConfig():
             FILTER_KEYWORDS = ''
             CONTINUE_RESPONSES_IF_PIPED = True
             WEBHOOK_DISCORD = ''
-            DEFAULT_OUTPUT_DIR = '~/.config/waymore'
+            DEFAULT_OUTPUT_DIR = os.path.expanduser('~/.config/waymore')
             
     except Exception as e:
         writerr(colored('ERROR getConfig 1: ' + str(e), 'red'))