I have two projects p1 and p2, and p2 depends on p1. Currently I created a virtual environment for running the program in p2, but every time I have to enter the p1's root directory and execute this in this virtual environment:
export PYTHONPATH=`pwd`
Otherwise, libraries in p1 can't be imported into p2. This is fine as long as I don't exit from the current terminal. Otherwise, I have to run the 'export' command again.
Is there a way to include this export command in my bash to avoid that? If I just add the line above to my bash, it doesn't work.