python - Permanently add a directory to PYTHONPATH -


Whenever I use sys.path.append , the new directory will be added. However, once I have stopped the python, the list will return to the previous (default?) Values. How do I add a directory permanently to PythonPath?

You need to add your new directory to the Environment variable Python Path , In any form of Unix, separated by a colon from its previous material, whatever you are using in a startup script, use the shell ( .profile or whatever, depending on your preferred shell On) can with an order which again, depends on the question; In Windows, you can do it for the purpose through the system GUI.

superuser.com can be a better place to ask for further information, that means more information if you want special information about it in your chosen platform and shell in environment variable How to enrich it, because it is not really a programming question.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -