thebeardedberry Posted May 18, 2020 Share Posted May 18, 2020 I'm trying to run a python3.7 script from a workflow (alfred4). The options only seem to contain the default python installation which is python2.7. Is there a way to run a python3.7 script? Link to comment
vitor Posted May 19, 2020 Share Posted May 19, 2020 Welcome @thebeardedberry, By necessity, Alfred’s options only include what macOS ships. To run with a different executable, you have two options:Set the language to External Script and point to the script with the correct shebang—must have the full path to the executable because Alfred’s environment isn’t the same as in your Terminal.Set the language to /bin/bash and call Python version (again, full path) and then your script and arguments. Something like /usr/local/bin/python3.7 your-script.py argument. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now