Monday, 2 July 2012

Python Environment variables


1)    PYTHONPATH: -   Has a role similar to PATH. It tells interpreter where to locate the modules files you import into a program. PYTHONPATH should include the python source library directory and the directories containing your Python source code.
2)    PYTHONSTARTUP:-  Contains the path of an initialization file containing Python source code that is executed every time you start the interpreter. This file often named .pythonrc.py in unix, usually contains commands that load utilities or modify PYTHONPATH.
3)    PYTHONCASEOK:- used in Windows to instruct python to find the first case-insensitive match in an import statement. Set this variable to any value to activate it.
4)    PYTHONHOME:-  An Alternate Module search path. It’s actually embedded in the PYTHONSTARTUP or PYTHONPATH directories to make switching modules libraries easy.

No comments:

Post a Comment