[Pulp-list] File Extensions

Jason L Connor jconnor at redhat.com
Wed Jun 23 14:49:26 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20100623/ec912e19/attachment.sig>


More information about the Pulp-list mailing list