diff -r 5ff1fc726848 -r c6bca38c1cbf eggs/infrae.subversion-1.4.5-py2.6.egg/infrae/subversion/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eggs/infrae.subversion-1.4.5-py2.6.egg/infrae/subversion/__init__.py Sat Jan 08 11:20:57 2011 +0530 @@ -0,0 +1,22 @@ +# Copyright (c) 2007-2008 Infrae. All rights reserved. +# $Id$ + +import os + +impl = os.getenv('INFRAE_SUBVERSION_IMPL', 'PYSVN') + +if impl == 'PYSVN': + try: + # Try to use a native binding, use native SVN. + import Native + Recipe = Native.Recipe + uninstall = Native.uninstall + except: + # Or if the binding is not present, use slow py. + impl = 'PY' + +if impl == 'PY': + import Py + Recipe = Py.Recipe + uninstall = Py.uninstall +