By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,337 Members | 2,234 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,337 IT Pros & Developers. It's quick & easy.

sys.path.append - Beginner having issues opening modules

P: 1
Every time that I want to open a module, do I have to append every time, or is there a way to permanently add the folder that I keep the modules in to the path?

I just started with python and I'm keeping all the exercises from the textbook I'm using in the same folder.
Aug 11 '14 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 621
I add anything additional to the PYTHONPATH system variable in .bashrc, i.e.
export PYTHONPATH=$PYTHONPATH:/usr/lib/python/site-python:/usr/lib64/python/ etc.
Aug 12 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.