Find the current directory and file's directory

How do I determine:

  1. the current directory (where I was in the shell when I ran the Python script), and
  2. where the Python file I am executing is?

← Назад к списку