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 52017de commit 5776ff8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def main(wf):

if not wf.cached_data_fresh(CURRENCY_CACHE_NAME, CURRENCY_CACHE_AGE):
# Update currency rates
cmd = ['/usr/local/bin/python3', wf.workflowfile('currency.py')]
cmd = ['/usr/bin/env', 'python3', wf.workflowfile('currency.py')]
run_in_background('update', cmd)
wf.rerun = 0.5

Expand Down
10 changes: 5 additions & 5 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
echo "http_proxy=$http_proxy">&2
echo "https_proxy=$https_proxy">&2
/usr/local/bin/python3 convert.py "$1"</string>
/usr/bin/env python3 convert.py "$1"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -299,7 +299,7 @@ variables={allvars}</string>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>/usr/local/bin/python3 defaults.py $action "$dimensionality" "$unit"</string>
<string>/usr/bin/env python3 defaults.py $action "$dimensionality" "$unit"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -397,7 +397,7 @@ variables={allvars}</string>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>/usr/local/bin/python3 info.py "$1"</string>
<string>/usr/bin/env python3 info.py "$1"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -447,7 +447,7 @@ variables={allvars}</string>
<key>escaping</key>
<integer>0</integer>
<key>script</key>
<string>/usr/local/bin/python3 info.py $1</string>
<string>/usr/bin/env python3 info.py $1</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -667,7 +667,7 @@ UPDATE_INTERVAL is the number of minutes between exchange rate updates.</string>
<string>APP_KEY</string>
</array>
<key>version</key>
<string>4.0.2</string>
<string>4.0.3</string>
<key>webaddress</key>
<string>https://github.com/harrtho/alfred-convert</string>
</dict>
Expand Down

0 comments on commit 5776ff8

Please sign in to comment.