Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set PYTHONPATH permanently?

Every day, when I open an Ubuntu terminal and want to run a python project, I have to run previously export PYTHONPATH=$(pwd). Is there a way to avoid doing this every time I switch on my computer? Is there a way to set my PYTHONPATH permanently for that project?

like image 466
Palinuro Avatar asked Dec 30 '25 16:12

Palinuro


1 Answers

Have you try adding the line you mention

export PYTHONPATH=$(pwd)

to ~/.bashrc or ~/.profile?

like image 61
vht981230 Avatar answered Jan 01 '26 05:01

vht981230



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!