PHD Discussions Logo

Ask, Learn and Accelerate in your PhD Research

Question Icon Post Your Answer

Question Icon

7 years ago in Python By Jessica

Commands in Python

Hi all. I have never used Python language. I have some queries regarding commands used in Python. Can someone clear my doubts? I want to know the purpose of PYTHONSTARTUP, PYTHONCASEOK, PYTHONHOME, PYTHONSTARTUP environment variables.

All Answers (3 Answers In All)

By Garima Chauhan Answered 7 years ago

1.PYTHONSTARTUP: It contains the way of an instatement record containing Python source code. It is named as .pythonrc.py in unix and it contains directions that heap utilities or alter PYTHONPATH
2.PYTHONCASEOK: It is utilized in Windows to train Python to locate the primary case-obtuse match in an import articulation. Set this variable to any an incentive to enact it
3.PYTHONHOME: It is an elective module seek way. It is typically implanted in the PYTHONSTARTUP or PYTHONPATH registries to make exchanging module libraries simple

By Rajiv Bhatia Answered 7 years ago

PYTHONSTARTUP is a situation variable you will characterize indicating the area of the way to a python document. This python content will be controlled by python before beginning the python intuitive mode. Where as PYTHONHOME is the standard condition variable used to follow the base of the present python establishment. It is set/unset also by virtualenv itself.

By Jessica Answered 7 years ago

Thank you so much people. The answers were informative enough.

Your Answer