Output path to p directory