I often open the command prompt from a folder in Windows Explorer by typing cmd + ENTER:
I noticed that by doing so, if I have changed something in my environment variables (e.g.
PATH, through System properties ==> Advanced system settings ==> Environment Variables) after I opened the Windows Explorer window but before I opened the command prompt, then when I open the command prompt, my modifications in environment variables are not present. E.g. if I open a Windows Explorer window, change PATH to change my Python interpreter, then open a command prompt from the Windows Explorer window, my Python interpreter has not changed. It works fine if I open the command prompt through Start -> Run -> cmd though.
Why, and is there anyway to fix this behavior?