summaryrefslogtreecommitdiff
path: root/git/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/__init__.py')
-rw-r--r--git/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/git/__init__.py b/git/__init__.py
index 58e4e7b6..0514d545 100644
--- a/git/__init__.py
+++ b/git/__init__.py
@@ -5,9 +5,12 @@
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
# flake8: noqa
#@PydevCodeAnalysisIgnore
+import inspect
import os
import sys
-import inspect
+
+import os.path as osp
+
__version__ = 'git'
@@ -16,7 +19,7 @@ __version__ = 'git'
def _init_externals():
"""Initialize external projects by putting them into the path"""
if __version__ == 'git':
- sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'ext', 'gitdb'))
+ sys.path.insert(0, osp.join(osp.dirname(__file__), 'ext', 'gitdb'))
try:
import gitdb