1

i would like to get the name of the "file.py" that I am executing with ironpython. I have to read and save data to other files with the same name start.

Thank you very much!

Humano

Paul R
  • 195,989
  • 32
  • 353
  • 519
Humano
  • 13
  • 2
  • 1
    possible duplicate of [In Python, how do I get the path and name of the file that is currently executing?](http://stackoverflow.com/questions/50499/in-python-how-do-i-get-the-path-and-name-of-the-file-that-is-currently-executin) – Bob Brown Sep 03 '14 at 10:20

1 Answers1

0

Use __file__. You can use os.path.basename(__file__)