[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] File Extensions



On Wed, 2010-06-23 at 08:40 -0600, Jason L Connor wrote:
> On Wed, 2010-06-23 at 10:28 -0400, Jason Dobies wrote:
> > Word, game on. I'll throw a note in the developer guide about that.
> 
> Actually the magic variable __file__ is the full path to the file as
> found on the file system. It is *not* a package name. And while it does
> lend it self to refactoring it a lot of ways, I don't think that's what
> we're looking for, for the loggers.
> 

I think the variable you're looking for is: __name__

-- 
Jason L Connor
Senior Software Engineer
Systems Management and Cloud Enablement
Red Hat, Inc.
+1.919.890.8331
Freenode: linear

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]