changed the returncode to make sure it detects python

This commit is contained in:
Hazel Noack 2025-07-30 11:16:03 +02:00
parent d9e6bac410
commit ba36851336

View File

@ -224,8 +224,9 @@ def mommify_venv():
# check for both just to be more expressive # check for both just to be more expressive
if name.startswith("inner_"): if name.startswith("inner_"):
continue continue
if subprocess.run([str(path), '-c', '"exit(0)"']).returncode != 0: RANDOM_RETURNCODE = 161
if subprocess.run([str(path), '-c', f'exit({RANDOM_RETURNCODE})']).returncode != RANDOM_RETURNCODE:
continue continue
wrap_interpreter(path, resolved_symlinks[path.name]) wrap_interpreter(path, resolved_symlinks[path.name])