I write the code for get application path but show an error

please help me how to solve this error.
Thank you

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Feb 19, 2020, 1:10 AM EST
Salman BegRank #284 · 8.8K reputationPosted Feb 18, 2020, 11:14 PM EST
dhoni kholi178 reputationPosted Feb 19, 2020, 1:46 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Feb 19, 2020, 1:54 AM EST