Add core/letsencrypt/jobs to Python path in certbot-new.py

This commit is contained in:
Théophile Diot 2024-12-23 11:24:32 +01:00
parent b26cee1917
commit d0be0fc2e0
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -15,7 +15,7 @@ from subprocess import DEVNULL, PIPE, STDOUT, Popen, run
from sys import exit as sys_exit, path as sys_path
from typing import Dict, Literal, Type, Union
for deps_path in [join(sep, "usr", "share", "bunkerweb", *paths) for paths in (("deps", "python"), ("utils",), ("db",))]:
for deps_path in [join(sep, "usr", "share", "bunkerweb", *paths) for paths in (("deps", "python"), ("utils",), ("db",), ("core", "letsencrypt", "jobs"))]:
if deps_path not in sys_path:
sys_path.append(deps_path)