fix: another attempt at local nyacme hook

This commit is contained in:
ptrcnull 2024-08-10 21:16:05 +02:00
parent 1fadbcccfd
commit b9ba712099
2 changed files with 5 additions and 1 deletions

4
nyacme-hook Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
cd "$(dirname "$0")"
exec python -m nyacme.hook "$@"

View file

@ -54,7 +54,7 @@ def main() -> None:
if not hook_path: if not hook_path:
log.warning('nyacme-hook not found') log.warning('nyacme-hook not found')
log.warning('setting hook path to `python -m nyacme.hook` instead') log.warning('setting hook path to `python -m nyacme.hook` instead')
hook_path = f'{sys.executable} -m nyacme.hook' hook_path = os.path.join(os.path.dirname(__file__), '..', 'nyacme-hook')
res = subprocess.run([ res = subprocess.run([
'uacme', '-v', 'uacme', '-v',