mirror of
https://github.com/kk7ds/chirp
synced 2026-08-13 17:51:36 -04:00
Fix Mac .app so paths with spaces work. Fixes Bug #145
This commit is contained in:
parent
00bd8cc5e6
commit
8596ceb728
1 changed files with 3 additions and 3 deletions
|
|
@ -1,15 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
LOCATION=$(dirname ${BASH_SOURCE})
|
||||
LOCATION=$(dirname "${BASH_SOURCE}")
|
||||
|
||||
PYTHON=/opt/kk7ds//Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
|
||||
|
||||
if [ -x $PYTHON ]; then
|
||||
ln -s $PYTHON ${LOCATION}/../CHIRP
|
||||
ln -s $PYTHON "${LOCATION}/../CHIRP"
|
||||
PYTHON=${LOCATION}/../CHIRP
|
||||
export PYTHONPATH="/opt/kk7ds//Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/"
|
||||
else
|
||||
PYTHON=/opt/kk7ds/bin/python2.7
|
||||
fi
|
||||
|
||||
exec $PYTHON ${LOCATION}/../Resources/chirp/chirpw
|
||||
exec "$PYTHON" "${LOCATION}/../Resources/chirp/chirpw"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue