Skip to content

Commit

Permalink
Missed an import.
Browse files Browse the repository at this point in the history
  • Loading branch information
sixy6e committed Jun 9, 2016
1 parent 0c99b1a commit 144f13f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gaip/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

import re
import os
from os.path import dirname, isdir, join, exists
from os.path import dirname, isdir, join, exists, abspath
from subprocess import CalledProcessError, check_output
import contextlib

import pkg_resources

Expand All @@ -36,7 +37,7 @@


def get_version():
package_dir = dirname(dirname(__file__))
package_dir = abspath(dirname(dirname(__file__)))
git_dir = join(package_dir, '.git')

if isdir(git_dir):
Expand Down Expand Up @@ -64,6 +65,7 @@ def get_version():
return version


@contextlib.contextmanager
def remember_cwd():
current_dir = os.getcwd()
try:
Expand Down

0 comments on commit 144f13f

Please sign in to comment.