Skip to content

Commit dcd8f14

Browse files
committed
Allow relative PYTHON_SOURCE path
1 parent 9c35675 commit dcd8f14

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

linuxdeploy-plugin-python.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ else
106106
mkdir -p "${PYTHON_BUILD_DIR}"
107107
fi
108108

109+
# check if the given sources are a local file or directory; if yes,
110+
# "save" the full path. It might've been given relative to the current
111+
# directory.
112+
if [ -e "${PYTHON_SOURCE}" ]; then
113+
PYTHON_SOURCE=$( readlink -f "${PYTHON_SOURCE}" )
114+
fi
115+
109116
cd "${PYTHON_BUILD_DIR}"
110117

111118

0 commit comments

Comments
 (0)