[TriZPUG] Reference The Current Version Of Your Python Egg In Your Modules
Josh Johnson
lionface.lemonface at gmail.com
Fri Jan 24 01:40:47 CET 2014
So I've got an app. It's packaged as an egg. I want to do stuff like write
to the log file "starting MyApp version 1.2.3332". What's the best way to
store that information?
In the past I've set a 'constant' at the root of the egg, something like
APPVERSION, and I reference it as MyApp.APPVERSION. I just have to remember
to keep it in line with the version in setup.py.
Is there a better way?
Thanks,
JJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/trizpug/attachments/20140123/77ba4909/attachment.html>
More information about the TriZPUG
mailing list