Obtenez le nom d'un script actuel dans Python

Use __file__. If you want to omit the directory part (which might be present), you can use os.path.basename(__file__)
Daneel Brookes