How to get the path to the folder from which the script is run?

I need this file path:

Python panel in QGIS.

  • 1
    I think this is a pure Python question that would be best researched/asked at Stack Overflow.
    – PolyGeo
    Aug 5 at 12:05
  • Thanks, there are indeed similar questions already there. Aug 5 at 12:18


Browse other questions tagged or ask your own question.