blob: 42d0d4aa80837540ee5f01010d3369f9c3efc919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- a/settings.py 2024-11-23 19:59:14.000000000 +0100
+++ b/settings.py 2024-11-27 23:17:31.592030318 +0100
@@ -410,16 +410,11 @@
-if os.path.isfile("settings.txt"):
- print("Running in portable mode")
- settings_dir = os.path.normpath('./')
- data_dir = os.path.normpath('./data')
-else:
- print("Running in non-portable mode")
- settings_dir = os.path.expanduser(os.path.normpath("~/.youtube-local"))
- data_dir = os.path.expanduser(os.path.normpath("~/.youtube-local/data"))
- if not os.path.exists(settings_dir):
- os.makedirs(settings_dir)
+print("Running in non-portable mode")
+settings_dir = os.path.expanduser(os.path.normpath("~/.youtube-local"))
+data_dir = os.path.expanduser(os.path.normpath("~/.youtube-local/data"))
+if not os.path.exists(settings_dir):
+ os.makedirs(settings_dir)
settings_file_path = os.path.join(settings_dir, 'settings.txt')
|