Purpose Of Environmental Variables

Python Programming Environment Setup, Install Python on Windows, UNIX, Macintosh etc, Operating Environments. Set Environment Variable, Write Sample Python Programs & Execute.
Post Reply
AyubHussain
Posts: 138
Joined: Fri Nov 23, 2018 2:48 am

Purpose Of Environmental Variables

Post by AyubHussain » Fri Nov 30, 2018 6:29 am

What is the purpose of PYTHONSTARTUP,PYTHONCASEOK,PYTHONHOME,PYTHONSTARTUP environment variables?

dsusmitha
Posts: 62
Joined: Fri Nov 23, 2018 2:51 am

Re: Purpose Of Environmental Variables

Post by dsusmitha » Fri Nov 30, 2018 6:36 am

PYTHONSTARTUP − It contains the path of an initialization file containing Python source code. It is executed every time you start the interpreter. It is named as .python rc.py in Unix and it contains commands that load utilities or modify PYTHON PATH

PYTHONCASEOK − It is 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.

PYTHONHOME − It is an alternative module search path. It is usually embedded in the PYTHONSTARTUP or PYTHON PATH directories to make switching module libraries easy.

Post Reply

Return to “Python Environment”