Iris Key
Iris Key

Reputation: 11

How to find the path to the file in Python?

(Windows) I have a file called: text.txt visible in the column on the left-hand side of my screen. After right-clicking on that file I should see "Show in Explorer", but I can't see such a command. enter image description here

I was wondering if it might have to do something with the fact, that I struggle to save my Python work, and can't edit ZIP files in Python.

Upvotes: 1

Views: 284

Answers (4)

threadfin
threadfin

Reputation: 163

right-click on "text.txt", then click "Open in", then click "Explorer"

Upvotes: -1

CodingX
CodingX

Reputation: 11

After right click, click on open in.. Explorer.

Upvotes: 1

slothrop
slothrop

Reputation: 5418

On the menu in your image, go to Open In >, then click Explorer in the submenu.

Upvotes: 1

Alderven
Alderven

Reputation: 8260

Copy Path/Reference will give you the path

Upvotes: 1

Related Questions