import checkpath as CP cp = CP.CheckPath() cp.check('/home/mdw')