From 806648043f6796a8e458f5bc97a5333cae01caa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 20 Oct 2017 09:14:30 -0400 Subject: [PATCH] Use absolute path --- get_subtitle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_subtitle.py b/get_subtitle.py index a1d15fa25..18e7f8313 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -9,7 +9,7 @@ from list_subtitles import * from utils import * # configure the cache -region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'}) +region.configure('dogpile.cache.dbm', arguments={'filename': os.path.join(os.path.dirname(__file__), 'data/cache/cachefile.dbm')}) def download_subtitle(path, language, hi, providers): video = scan_video(path)