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

14

Could __file__ be what you are looking for?

Arkady
  • 13,115
  • 7
  • 38
  • 46