Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Py3] Use /usr/bin/python3 #46

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion create.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# encoding: utf-8

"""
Expand Down
39 changes: 36 additions & 3 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,18 @@
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python search.py "{query}"</string>
<string>#!/bin/bash

if [ -e /usr/bin/python ]; then
py=/usr/bin/python
elif [ -e /usr/bin/python3 ]; then
py=/usr/bin/python3
else
echo "Couldn't find system python"
exit 1
fi

$py search.py "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -179,7 +190,18 @@ fi</string>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python search.py -t a "{query}"</string>
<string>#!/bin/bash

if [ -e /usr/bin/python ]; then
py=/usr/bin/python
elif [ -e /usr/bin/python3 ]; then
py=/usr/bin/python3
else
echo "Couldn't find system python"
exit 1
fi

$py search.py -t a "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -226,7 +248,18 @@ fi</string>
<key>runningsubtext</key>
<string>Searching...</string>
<key>script</key>
<string>/usr/bin/python create.py "{query}"</string>
<string>#!/bin/bash

if [ -e /usr/bin/python ]; then
py=/usr/bin/python
elif [ -e /usr/bin/python3 ]; then
py=/usr/bin/python3
else
echo "Couldn't find system python"
exit 1
fi

$py create.py "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
Expand Down
2 changes: 1 addition & 1 deletion queries.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# encoding: utf-8

"""
Expand Down
2 changes: 1 addition & 1 deletion search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# encoding: utf-8

"""
Expand Down