[Update] I can make this work by including the path to my virtual environments python installation in the shebang line:
ie: #!/Users/me/dev/bbedit_test/venv/bin/python import requests ... But this still leaves me wondering what the setting, "Always use python when a virtual environment is active" is supposed to do. Thanks! On Thursday, February 29, 2024 at 5:22:00 PM UTC-5 Benjamin Davidson wrote: > I'm trying to use the *#! : Run* command with Python scripts but I'm > unsure how to get the command to use the virtual environment that exists in > the workspace folder. > > In the Python language settings, there is a an option to "Always use > python when a virtual environment is active" which sounds like what I want > but checking the box seems to have no effect. > > Any tips on how to make this work? > > Thanks! > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/a0c05b77-1574-4d2f-a896-4c7e2ac57bddn%40googlegroups.com.
