Re: Pfad zu aktuellem Python-Modul

Stefan Palme <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization Invisible Brain
Message-ID <[email protected]>
> > Besteht eine Möglichkeit, im Code von p.py den absoluten Pfad (im
> > Dateisystem) zu eben dieser Datei p.py herauszufinden?
> 
> os.path.abspath(__file__)

Danke!

-stefan-



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.