#!/usr/bin/python3 from os import getenv print("Path: ", getenv("PATH")) path = getenv("PATH") if "sbin" in path: print("sbin is in the path!")