Skip to content

Commit

Permalink
add trick to bypass absolute pass in Thonny
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bonani committed May 23, 2022
1 parent 1b5de4d commit 6603ade
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osx/createbundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ cp -R "${BUILD_DIR}/ThymioVPLClassic.app" "$APPS_DIR/"

sudo installer -pkg thonny-3.3.13.pkg -target /
cp -R "/Applications/Thonny.app" "$APPS_DIR/"
mv "$APPS_DIR/Thonny.app/Contents/MacOS/thonny" "$APPS_DIR/Thonny.app/Contents/MacOS/thonny.py"
cp thonny "$APPS_DIR/Thonny.app/Contents/MacOS/"

for app in "AsebaStudio" "ThymioVPLClassic"
do
Expand Down
8 changes: 8 additions & 0 deletions osx/thonny
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

script_dir=`echo "$0" | sed -E 's/\/[^\/]*$//'`

python_path="${script_dir}/../Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python"
thonny_py_path="${script_dir}/thonny.py"

"$python_path" "$thonny_py_path"

0 comments on commit 6603ade

Please sign in to comment.