Skip to content
Merged
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
23 changes: 11 additions & 12 deletions git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
#{ Initialization
def _init_externals():
"""Initialize external projects by putting them into the path"""
ext_base = os.path.join(os.path.dirname(__file__), 'ext')
ext_base = os.path.join(os.path.dirname(__file__), 'ext')
for package in ('async', 'smmap'):
sys.path.append(os.path.join(ext_base, package))
try:
__import__(package)
except ImportError:
raise ImportError("%r could not be found in your PYTHONPATH" % package)
#END verify import
#END handle external import
# END verify import
# END handle external import

#} END initialization

#################
Expand All @@ -43,14 +43,13 @@ def _init_externals():
from git.index import *
from git.repo import Repo
from git.util import (
LockFile,
BlockingLockFile,
Stats,
Actor
)
LockFile,
BlockingLockFile,
Stats,
Actor
)

#} END imports

__all__ = [ name for name, obj in locals().items()
if not (name.startswith('_') or inspect.ismodule(obj)) ]

__all__ = [name for name, obj in locals().items()
if not (name.startswith('_') or inspect.ismodule(obj))]
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy