diff --git a/gitea/mods/rst/files/default/grst b/gitea/mods/rst/files/default/grst index b575454..26188c5 100644 --- a/gitea/mods/rst/files/default/grst +++ b/gitea/mods/rst/files/default/grst @@ -3,7 +3,7 @@ import subprocess import sys -from docutils import nodes, core, io +from docutils import nodes, core from docutils.parsers.rst import directives, Directive diff --git a/gitea/mods/rst/init.sls b/gitea/mods/rst/init.sls index 6bbb5c7..3803b81 100644 --- a/gitea/mods/rst/init.sls +++ b/gitea/mods/rst/init.sls @@ -24,6 +24,7 @@ RST external renderer pkg dependencies are installed: RST external renderer pip dependencies are installed: pip.installed: - names: {{ gitea.lookup.mod_rst.pip_dependencies | json }} + - bin_env: __slot__:salt:cmd.which('pip') - require: - RST external renderer pkg dependencies are installed