I want to create a python program which on running gives me the python path in the linux environmental variable. In windows I am doing below way -
import os
try:
user_paths=os.environmen['path'].split(os.pathstep)
excepterror:
user_paths=[]
print(user_paths)