changed the returncode to make sure it detects python
This commit is contained in:
parent
d9e6bac410
commit
ba36851336
@ -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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user