Quantcast
Viewing all articles
Browse latest Browse all 1264

Python • Re: Activating a venv at boot time

I think you should change the way you've scripted your bash file

Code:

. <venvname>/bin/activate
The above line works for me, provided you put the name of the venv where the <venvname> is


To test if it works, it should be run as

Code:

. <filename>.sh
Note on each instances there is a period, followed by a space before "<"

source and . are the same thing. See above for why the OP's script isn't working.

Statistics: Posted by thagrol — Sat Feb 15, 2025 1:01 pm



Viewing all articles
Browse latest Browse all 1264

Trending Articles