Answers for "how to add directory path in python"

0

add dir to path python

import sys
sys.path.insert(0,'/path/to/mod_directory')
Posted by: Guest on August-26-2021
3

add python to path

# On linux
$ which python; # Get Path of the executable
$ export PATH=$PATH:{PATH_PYTHON}; # but it isn't continue
# ----------------------
$ which python; # Get Path of the executable
export PATH=$PATH:{PATH_PYTHON}; # add in your ~/.bashrc or your ~/.zshrc
Posted by: Guest on October-06-2020

Code answers related to "how to add directory path in python"

Python Answers by Framework

Browse Popular Code Answers by Language