fix: use scriptpath

This commit is contained in:
Daylin Morgan 2023-06-13 13:55:32 -05:00
parent 838b585a52
commit c195c540a7
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -52,7 +52,7 @@ from typing import (
from urllib.error import HTTPError from urllib.error import HTTPError
from urllib.request import urlopen from urllib.request import urlopen
__version__ = "23.5a5-30-g9752582-dev" __version__ = "23.5a5-30-g838b585-dev"
class Spinner: class Spinner:
@ -1433,7 +1433,9 @@ class Viv:
vivenv.touch() vivenv.touch()
vivenv.meta.write() vivenv.meta.write()
sys.exit(subprocess.run([vivenv.python, script, *rest]).returncode) sys.exit(
subprocess.run([vivenv.python, scriptpath, *rest]).returncode
)
else: else:
_, bin = self._pick_bin(reqs, bin) _, bin = self._pick_bin(reqs, bin)