Move trakt_cache to paths module
MODIFY
plex_trakt_sync/main.py
plex_trakt_sync/main.py
import plexapi.server
+import requests_cache
import trakt
-from plex_trakt_sync.path import pytrakt_file, env_file
+from plex_trakt_sync.path import pytrakt_file, env_file, trakt_cache
trakt.core.CONFIG_PATH = pytrakt_file
import trakt.errors
import trakt.movies
from plex_trakt_sync.config import CONFIG
from plex_trakt_sync.logging import logging
-import requests_cache
-
-requests_cache.install_cache('trakt_cache')
+requests_cache.install_cache(trakt_cache)
trakt_post_wait = 1.2 # delay in sec between trakt post requests to respect rate limit

MODIFY
plex_trakt_sync/path.py
plex_trakt_sync/path.py
pytrakt_file = join(app_path, ".pytrakt.json")
env_file = join(app_path, ".env")
log_file = join(app_path, "last_update.log")
+trakt_cache = join(app_path, "trakt_cache")

Move trakt_cache to paths module