Satnarayan Aggarwal
Satnarayan Aggarwal

Reputation: 147

Why we add 2 directories path in Python in Windows environment variable

Why we add 2 directory path in windows environment variableC:\Python27\;C:\Python27\Scripts\ ?

Is C:\Python27\ is not sufficient ?

Any helpful answer will be appreciated !

Upvotes: 1

Views: 60

Answers (1)

cs95
cs95

Reputation: 403012

sys does not do a recursive lookup because that is wasteful. Explicitly specify the complete path to ONLY the directories/sub-directories you want to include in your PATH, and python will only look for modules to import there.

Upvotes: 1

Related Questions