結果 : python get directory path from string