diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-07 23:37:19 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-07 23:37:19 +0200 |
commit | 023dc1244c02d415bb964eeb0b51b257523897df (patch) | |
tree | 2ebffe75f484d48a8fdc2c282a457cf77a86c3cf /git/db/dulwich/__init__.py | |
parent | 2baf8a493618463d2bb41b8e96c8304bf48e2c8a (diff) | |
parent | f4f330f8588dacd43af6513e1e1e1a50237da1e7 (diff) | |
download | gitpython-023dc1244c02d415bb964eeb0b51b257523897df.tar.gz |
Merge branch 'dulwich'
Diffstat (limited to 'git/db/dulwich/__init__.py')
-rw-r--r-- | git/db/dulwich/__init__.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/git/db/dulwich/__init__.py b/git/db/dulwich/__init__.py new file mode 100644 index 00000000..92d30941 --- /dev/null +++ b/git/db/dulwich/__init__.py @@ -0,0 +1,13 @@ +"""Dulwich module initialization""" + +def init_dulwich(): + """:raise ImportError: if dulwich is not present""" + try: + import dulwich + except ImportError: + raise ImportError("Could not find 'dulwich' in the PYTHONPATH - dulwich functionality is not available") + #END handle dulwich import + + + +init_dulwich() |