On Thu, Jul 2, 2009 at 9:22 AM, Pete Wrightpete@demonware.net wrote:
uggg - thats the great thing about the LSB, there are so many ways you can implement it :p
i reckon we'll have to keep the existing debian os detection function and add a ubuntu function. yuck. i'll fire up a proper debian instance today and see what ideas i can come up with.
thanks for the heads up javier!
Just preference /etc/lsb-release if it exists and then fallback. It is much more generic in that approach. If you install the lsb packages on debian /etc/lsb-release should exist and provide the same basic information you're looking for. os.stat() should do the trick pretty well but thats just a thought. Great work on the *buntu / Debian support.