diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-11-10 00:27:43 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-11-10 00:27:43 -0800 |
commit | 717bf210937c757595624348db9389969be9654f (patch) | |
tree | 7814a81f5c0de1084ab46f3a88b6186798932dfa /youtube/local_playlist.py | |
parent | 9dd8308cf23de69c741f0304ace102718b844e16 (diff) | |
download | yt-local-717bf210937c757595624348db9389969be9654f.tar.lz yt-local-717bf210937c757595624348db9389969be9654f.tar.xz yt-local-717bf210937c757595624348db9389969be9654f.zip |
Can now store settings&data in ~/.youtube-local, keeping program files separate
Diffstat (limited to 'youtube/local_playlist.py')
-rw-r--r-- | youtube/local_playlist.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py index 76e7ee6..715015e 100644 --- a/youtube/local_playlist.py +++ b/youtube/local_playlist.py @@ -5,9 +5,11 @@ from youtube import common import html import gevent import urllib +import settings + +playlists_directory = os.path.join(settings.data_dir, "playlists") +thumbnails_directory = os.path.join(settings.data_dir, "playlist_thumbnails") -playlists_directory = os.path.normpath("data/playlists") -thumbnails_directory = os.path.normpath("data/playlist_thumbnails") with open('yt_local_playlist_template.html', 'r', encoding='utf-8') as file: local_playlist_template = Template(file.read()) |