mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 13:58:25 +00:00
Fix, Check requirements.txt in script dir instead of config
When run not on docker, check for requirements.txt from the dir where the script resides instead of the config dir when using --config command for a different directory.
This commit is contained in:
parent
dc19fd29a9
commit
3bcc3cc829
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ def start(attrs):
|
|||
required_version = None
|
||||
if not is_docker and not is_linuxserver:
|
||||
try:
|
||||
with open("requirements.txt", "r") as file:
|
||||
with open(os.path.abspath(os.path.join(os.path.dirname(__file__), "requirements.txt")), "r") as file:
|
||||
required_version = next(ln.strip()[9:] for ln in file.readlines() if ln.strip().startswith("PlexAPI=="))
|
||||
except FileNotFoundError:
|
||||
logger.error(" File Error: requirements.txt not found")
|
||||
|
|
Loading…
Add table
Reference in a new issue