4 ms·
I do this with poetry: cd my_program poetry install echo alias my_program=\"$(poetry run which python) $(pwd)/my_program.py\" >> ~/.bashrc Then re
by EnigmaCurry 5y ago
I do this with poetry:
cd my_program
poetry install
echo alias my_program=\"$(poetry run which python) $(pwd)/my_program.py\" >> ~/.bashrc
Then restart my shell. This way I can run my_program from anywhere, and I don't need to activate any environments.