valhuber / ubuntu-script-venv

How to activate a vent in an Ubuntu script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Several questions (like this) have addressed creating ubuntu scripts that establish a Python environment.

Here is a running example that worked for me - Ubuntu 22.04. It works as follows:

  • run sh setup-venv.sh to create a small venv
  • run use-in-script.sh to verify output as (only) python-dotenv.
    • Note it demonstrates 2 alternatives

About

How to activate a vent in an Ubuntu script


Languages

Language:Shell 100.0%