5

Possible Duplicate:
python, path of script

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

Community
  • 1
  • 1

1 Answers1

15

Could __file__ be what you are looking for?

Arkady
  • 14,305
  • 8
  • 42
  • 46