This way makes your program non OS dependant.
from os import remove
from sys import argv
remove(argv[0])
Bonus points:
When parsing arguments the very first argument that you get in sys.argv is equals to "path-to-filename/filename.py"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…