Article View: pl.comp.lang.python
Article #13640NameError: name '__file__' is not defined
From: Mateusz Łoskot
Date: Wed, 25 Jan 2006 11:09
Date: Wed, 25 Jan 2006 11:09
11 lines
1054 bytes
1054 bytes
Witam, Nie rozumiem albo coś na przestrzeni wersji Pythona mi umknęło. Dlaczego Python 2.3 protestuje gdy w skrypcie używam __file__? Czy to coś niepoprawnego: path = os.path.dirname(__file__) Pozdrawiam -- Mateusz Łoskot http://mateusz.loskot.net
Technical Details
Message-ID:
<dr7m8h$36t$2@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Mateusz Łoskot <see.my@signature.net> Newsgroups: pl.comp.lang.python Subject: NameError: name '__file__' is not defined Date: Wed, 25 Jan 2006 12:09:02 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 11 Message-ID: <dr7m8h$36t$2@inews.gazeta.pl> NNTP-Posting-Host: chello084010112166.chello.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1138187345 3293 84.10.112.166 (25 Jan 2006 11:09:05 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Wed, 25 Jan 2006 11:09:05 +0000 (UTC) X-Accept-Language: pl, en-us, en X-User: mloskot User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit