Asked • 05/03/19

Find current directory and file's directory?

In Python, what commands can I use to find:1. the current directory (where I was in the terminal when I ran the Python script), and2. where the file I am executing is?

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.