Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get self file name [duplicate]

Tags:

python

file

Possible Duplicate:
python, path of script

Is there any way that i can print the self filename of a file and current location.

like image 892
Arkajit Mandal Avatar asked Jan 26 '11 05:01

Arkajit Mandal


People also ask

What is a duplicate file name?

A duplicate file is a copy of a file on your computer or external disk that may be stored in the same or in another folder. Duplicate files have absolutely identical content, size, and extensions but might have different file names.

How do I save a duplicate file?

Go to the location of the document you want to duplicate. In the new file that opens, click File in the menu bar, then click Save As. Name the document as desired. If you want it to be saved in a different folder or drive, browse to that location before saving.


1 Answers

Could __file__ be what you are looking for?

like image 94
Arkady Avatar answered Oct 04 '22 02:10

Arkady