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 |