Skip to content

Commit

Permalink
fix: Use system configured python3 from PATH variable
Browse files Browse the repository at this point in the history
  • Loading branch information
harrtho committed Jan 2, 2023
1 parent c0728aa commit a8094cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion active_app_benchmarks/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main():
for script in iter_scripts():

name = os.path.splitext(os.path.basename(script))[0]
cmd = ['/usr/local/bin/python3', script]
cmd = ['/usr/bin/env', 'python3', script]
times = []
print(name)
for i in range(ITERATIONS):
Expand Down
8 changes: 4 additions & 4 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<key>runningsubtext</key>
<string>Loading scripts…</string>
<key>script</key>
<string>/usr/local/bin/python3 appscripts.py search "$1"</string>
<string>/usr/bin/env python3 appscripts.py search "$1"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -329,7 +329,7 @@ echo "$name"</string>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>/usr/local/bin/python3 appscripts.py config "$1"</string>
<string>/usr/bin/env python3 appscripts.py config "$1"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -379,7 +379,7 @@ echo "$name"</string>
<key>escaping</key>
<integer>0</integer>
<key>script</key>
<string>/usr/local/bin/python3 appscripts.py $1</string>
<string>/usr/bin/env python3 appscripts.py $1</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -507,7 +507,7 @@ echo "$name"</string>
</dict>
</dict>
<key>version</key>
<string>4.0.0</string>
<string>4.0.1</string>
<key>webaddress</key>
<string>https://github.com/harrtho/alfred-appscripts</string>
</dict>
Expand Down

0 comments on commit a8094cd

Please sign in to comment.