Seite 1 von 1

frame.f_code.co_filename

Verfasst: Samstag 19. Februar 2005, 17:09
von be_veronic
Hallo,

Kann mir jemand erklaeren was frame.f_code.co_filename macht?Wenn ich z.B den Path von ConfigParser.py wissen will bekomme ich "/var/tmp/python-2.2.2-root/usr/local/lib/python2.2/ConfigParser.py" als Ergebnis,und dass ist nicht der wirkliche Path.
Kann ich irgendwie erfahren wo alle Library Files von Python sind?
Danke.

Verfasst: Sonntag 20. Februar 2005, 00:19
von BlackJack
Wo kommt der Name `frame` her?

Ansonsten schau Dir mal `sys.path` an.