The Python Oracle

How to get the name of the top most (entry) script in python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Drifting Through My Dreams

--

Chapters
00:00 Question
00:37 Accepted answer (Score 8)
01:01 Answer 2 (Score 2)
01:39 Thank you

--

Full question
https://stackoverflow.com/questions/1647...

Accepted answer links:
[this overly thorough treatment of the topic]: http://doughellmann.com/2012/04/determin...

Answer 2 links:
[inspect]: http://docs.python.org/2/library/inspect...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #introspection

#avk47