Skip to content

Commit 0b67aef

Browse files
committed
Symlink to the highest major version of Python
1 parent 9c22d46 commit 0b67aef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

linuxdeploy-plugin-python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ patch_binary() {
228228
}
229229

230230
cd "$APPDIR/${prefix}/bin"
231-
ln -s python3 python
231+
[ -f python3 ] && ln -fs python3 python
232232
python=$(ls "python"?"."?)
233233
mkdir -p "${APPDIR}/usr/lib"
234234
cd "${APPDIR}/${prefix}/lib/${python}"

share/python-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SCRIPT=`realpath $0`
3+
SCRIPT=`readlink -f -- $0`
44
SCRIPTPATH=`dirname $SCRIPT`
55
APPDIR="${APPDIR:-$SCRIPTPATH/../..}"
66

0 commit comments

Comments
 (0)