Correct workaround for package path injection
This commit is contained in:
parent
9ebb526ef9
commit
fd7f8f1030
|
@ -112,7 +112,8 @@ allowed)
|
||||||
### Scripts in packages
|
### Scripts in packages
|
||||||
|
|
||||||
[Script Extension](matches#script-extension) can also be added to packages.
|
[Script Extension](matches#script-extension) can also be added to packages.
|
||||||
Use a combination of the [CLI](cli#paths)'s `espanso path packages` output
|
Use a combination of the [Shell Extension](matches#shell-extension),
|
||||||
|
the [CLI](cli#paths)'s `espanso path packages` output,
|
||||||
and your package's name to automatically construct the correct path:
|
and your package's name to automatically construct the correct path:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
@ -121,11 +122,9 @@ and your package's name to automatically construct the correct path:
|
||||||
replace: "{{output}}"
|
replace: "{{output}}"
|
||||||
vars:
|
vars:
|
||||||
- name: output
|
- name: output
|
||||||
type: script
|
type: shell
|
||||||
params:
|
params:
|
||||||
args:
|
cmd: "python "$(espanso path packages)"/simple-package/scripts/script.py'
|
||||||
- python
|
|
||||||
- "$(espanso path packages)/simple-package/scripts/script.py"
|
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user