Skip to content

Commit

Permalink
Fixes file paths for cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbc committed Apr 21, 2023
1 parent 4bc0a05 commit 0e2094b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plexorcist.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# Read the config file
config = configparser.ConfigParser()
config.read("plexorcist.ini")
config.read(config_file_path)

# Set the script properties
PLEX_HOSTNAME = config.get("plex", "hostname")
Expand All @@ -38,8 +38,7 @@
I18N[option] = config.get("i18n", option)

# Set the log file name
log_file_path = os.path.join(script_dir, "plexorcist.log")
LOG_FILE = log_file_path
LOG_FILE = os.path.join(script_dir, "plexorcist.log")

# Create a rotating file handler with a maximum size of 1 MB
handler = RotatingFileHandler(LOG_FILE, maxBytes=1024 * 1024, backupCount=2)
Expand Down

0 comments on commit 0e2094b

Please sign in to comment.