Move default config.default.json to module dir
This is needed for pyp packaging to keep files inside a dir
MODIFY
README.md
README.md
@@ -19,7 +19,7 @@ Note: The PyTrakt API keys are not stored securely, so if you do not want to hav
- Watched status are synced (dates are not reported from Trakt to Plex)
- Liked lists in Trakt are downloaded and all movies in Plex belonging to that
list are added
- - You can edit the [config file](https://github.com/Taxel/PlexTraktSync/blob/HEAD/config.default.json) to choose what to sync
+ - You can edit the [config file](https://github.com/Taxel/PlexTraktSync/blob/HEAD/plex_trakt_sync/config.default.json) to choose what to sync
- None of the above requires a Plex Pass or Trakt VIP membership.
Downside: Needs to be executed manually or via cronjob,
can not use live data via webhooks.

RENAME
config.default.json
plex_trakt_sync/config.default.json
MODIFY
plex_trakt_sync/path.py
plex_trakt_sync/path.py
class Path:
def __init__(self):
- self.app_path = dirname(dirname(abspath(__file__)))
+ self.module_path = dirname(abspath(__file__))
+ self.app_path = dirname(self.module_path)
- self.default_config_file = join(self.app_path, "config.default.json")
+ self.default_config_file = join(self.module_path, "config.default.json")
self.config_file = join(self.config_dir, "config.json")
self.pytrakt_file = join(self.config_dir, ".pytrakt.json")
self.env_file = join(self.config_dir, ".env")

Move default config.default.json to module dir

This is needed for pyp packaging to keep files inside a dir