fix: another attempt at local nyacme hook
This commit is contained in:
parent
1fadbcccfd
commit
b9ba712099
2 changed files with 5 additions and 1 deletions
4
nyacme-hook
Executable file
4
nyacme-hook
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
exec python -m nyacme.hook "$@"
|
|
@ -54,7 +54,7 @@ def main() -> None:
|
|||
if not hook_path:
|
||||
log.warning('nyacme-hook not found')
|
||||
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([
|
||||
'uacme', '-v',
|
||||
|
|
Loading…
Reference in a new issue