Skip to content
Snippets Groups Projects
Commit b2f3b8f1 authored by Alexandre Strube's avatar Alexandre Strube
Browse files

Created a python wrapper generator

parent 0b068a93
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
SOURCE_PATH="${BASH_SOURCE[0]:-${(%):-%x}}"
RELATIVE_PATH="$(dirname "$SOURCE_PATH")"
ABSOLUTE_PATH="$(realpath "${RELATIVE_PATH}")"
source "${ABSOLUTE_PATH}"/config.sh
PYTHONWRAPPER="${ABSOLUTE_PATH}"/python
echo '#!/bin/bash
module purge 2> /dev/null
deactivate 2> /dev/null
source "'"${ABSOLUTE_PATH}"'"/activate.sh
python "$@"
' > "${PYTHONWRAPPER}"
chmod a+x "${PYTHONWRAPPER}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment