There is a development directory
/home/user/work/prog
with environment setup with
python3 -m venv .
After finishing development I copied the directory to
/opt/prog
Of course the environment paths inside are all wrong and are still pointing to /home/user/work/prog
.
Simply running
python3 -m venv /opt/prog
didn't change the paths to the new location. However, this solution looked good:
python3 -m venv --clear /opt/prog
Unfortunately that removed all the project source files.
I think I am trying to perform a basic ordinary task, but searching I can't even find the same question.
What is the standard way to reset the virt env path information (without removing source) ?