eggs/infrae.subversion-1.4.5-py2.6.egg/infrae/subversion/__init__.py
changeset 69 c6bca38c1cbf
equal deleted inserted replaced
68:5ff1fc726848 69:c6bca38c1cbf
       
     1 # Copyright (c) 2007-2008 Infrae. All rights reserved.
       
     2 # $Id$
       
     3 
       
     4 import os
       
     5 
       
     6 impl = os.getenv('INFRAE_SUBVERSION_IMPL', 'PYSVN')
       
     7 
       
     8 if impl == 'PYSVN':
       
     9     try:
       
    10         # Try to use a native binding, use native SVN.
       
    11         import Native
       
    12         Recipe = Native.Recipe
       
    13         uninstall = Native.uninstall
       
    14     except:
       
    15         # Or if the binding is not present, use slow py.
       
    16         impl = 'PY'
       
    17 
       
    18 if impl == 'PY':
       
    19     import Py
       
    20     Recipe = Py.Recipe
       
    21     uninstall = Py.uninstall
       
    22