Gentoo Archives: gentoo-user

From: Manuel McLure <manuel@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Source Python virtualenv in OpenRC script
Date: Sun, 12 Dec 2021 22:39:37
Message-Id: CAGJrxsQpPEJPft=RhOqZ3ynTbq6sWDjAawSk=yETUsYqH--LyQ@mail.gmail.com
In Reply to: [gentoo-user] Source Python virtualenv in OpenRC script by Julien Roy
1 On Sat, Dec 11, 2021 at 3:54 PM Julien Roy <julien@××××.ca> wrote:
2
3 > Hello,
4 >
5 > I am trying to create an OpenRC script to start a python module.
6 > To launch the module manually, what I would do is:
7 > cd $moduleDir
8 > source bin/activate
9 > python -m $module
10 >
11
12 You can actually just use
13
14 $moduleDir/bin/python -m $module
15
16 Executing anything from the bin directory inside the venv will make it act
17 as if it had activated the venv.
18 --
19 Manuel A. McLure WW1FA <manuel@××××××.org> <http://www.mclure.org>
20 ...for in Ulthar, according to an ancient and significant law,
21 no man may kill a cat. -- H.P. Lovecraft

Replies

Subject Author
Re: [gentoo-user] Source Python virtualenv in OpenRC script Julien Roy <julien@××××.ca>