mirror of https://github.com/pwndbg/pwndbg
Fix Python version detection in the install script
This commit is contained in:
parent
a9e6ee4ae3
commit
f5705206b7
2
setup.sh
2
setup.sh
|
@ -9,7 +9,7 @@ fi
|
|||
git submodule update --init --recursive
|
||||
|
||||
# Find the path to the Python interpreter used by GDB.
|
||||
PYTHON=$(gdb -batch -q --nx -ex 'pi import sys; print(sys.executable)')
|
||||
PYTHON=$(gdb -batch -q --nx -ex 'pi import platform; print("python%s.%s" % platform.python_version_tuple()[:2])')
|
||||
|
||||
# Install Python dependencies
|
||||
sudo $PYTHON -m pip install -Ur requirements.txt
|
||||
|
|
Loading…
Reference in New Issue