add standalone exe to generate vivenvs for shim
This commit is contained in:
parent
f0ec2f9013
commit
0ebdbec9cb
1 changed files with 9 additions and 0 deletions
9
home/private_bin/executable_generate-vivenvs
Normal file
9
home/private_bin/executable_generate-vivenvs
Normal file
|
@ -0,0 +1,9 @@
|
|||
from viv import Env, ViVenv
|
||||
|
||||
SPECS = (["black"], ["pre-commit"], ["pdm"])
|
||||
for spec in SPECS:
|
||||
vivenv = ViVenv(spec)
|
||||
if not vivenv.loaded or Env().viv_force:
|
||||
vivenv.create()
|
||||
vivenv.install_pkgs()
|
||||
vivenv.meta.write()
|
Loading…
Reference in a new issue