sys.path.append - Beginner having issues opening modules

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jackpy
    New Member
    • Aug 2014
    • 1

    sys.path.append - Beginner having issues opening modules

    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.
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    I add anything additional to the PYTHONPATH system variable in .bashrc, i.e.
    export PYTHONPATH=$PYT HONPATH:/usr/lib/python/site-python:/usr/lib64/python/ etc.

    Comment

    Working...