Skip to content

Python3 compat #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions gitdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@
import sys
import os

#{ Initialization
# { Initialization


def _init_externals():
"""Initialize external projects by putting them into the path"""
for module in ('async', 'smmap'):
sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', module))

try:
__import__(module)
except ImportError:
raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module)
#END verify import
#END handel imports

#} END initialization
raise ImportError(
"'%s' could not be imported, assure it is located in your PYTHONPATH" %
module)
# END verify import
# END handel imports

# } END initialization

_init_externals()

Expand All @@ -32,7 +36,6 @@ def _init_externals():


# default imports
from db import *
from base import *
from stream import *

from .db import *
from .base import *
from .stream import *
Loading