[telepathy-butterfly/master] Check python version at start-up
Olivier Le Thanh Duong
olivier at lethanh.be
Sun Aug 9 07:20:17 PDT 2009
---
telepathy-butterfly | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/telepathy-butterfly b/telepathy-butterfly
index ee25436..32dc3a3 100755
--- a/telepathy-butterfly
+++ b/telepathy-butterfly
@@ -25,6 +25,10 @@ import os
import sys
import logging
+if sys.version_info < (2, 5):
+ print >> sys.stderr, 'Critical: python >= 2.5 required. Exiting.'
+ sys.exit(1)
+
import telepathy
if telepathy.version < (0, 15, 9):
print >> sys.stderr, 'Critical: telepathy-python >= 0.15.9 required. Exiting.'
--
1.5.6.5
More information about the telepathy-commits
mailing list