Re: How to get working directory?

Fawaz Abdul rahman

os.path.dirname(__file) should give you the path of the current script.
if you want the absolute path then
good luck.

On Sun, Sep 12, 2021 at 6:58 AM 高生旺 <coscell@...> wrote:
In my addon, if I call os.getcwd(), it always return
c:\Program Files (x86)\nvda.
How can I get real working path?

Join to automatically receive all group messages.