extract path into variable
Merge pull request #10290 from buddhamagnet/master

Extract path into variable