__init__.py 972 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
  2. #
  3. # This module is part of GitDB and is released under
  4. # the New BSD License: http://www.opensource.org/licenses/bsd-license.php
  5. """Initialize the object database module"""
  6. import sys
  7. import os
  8. #{ Initialization
  9. def _init_externals():
  10. """Initialize external projects by putting them into the path"""
  11. if 'PYOXIDIZER' not in os.environ:
  12. where = os.path.join(os.path.dirname(__file__), 'ext', 'smmap')
  13. if os.path.exists(where):
  14. sys.path.append(where)
  15. import smmap
  16. del smmap
  17. # END handle imports
  18. #} END initialization
  19. _init_externals()
  20. __author__ = "Sebastian Thiel"
  21. __contact__ = "byronimo@gmail.com"
  22. __homepage__ = "https://github.com/gitpython-developers/gitdb"
  23. version_info = (4, 0, 10)
  24. __version__ = '.'.join(str(i) for i in version_info)
  25. # default imports
  26. from gitdb.base import *
  27. from gitdb.db import *
  28. from gitdb.stream import *