Fix SCRIPT_DIR to be an absolute path so git clones against the REPO work when it is also your cwd

This commit is contained in:
Ewen Cheslack-Postava 2017-05-03 10:16:03 -07:00
parent de54c97ddc
commit a3a7245381
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ import tempfile
PROJECT_NAME = "kafka"
CAPITALIZED_PROJECT_NAME = "kafka".upper()
SCRIPT_DIR = os.path.dirname(__file__)
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
# Location of the local git repository
REPO_HOME = os.environ.get("%s_HOME" % CAPITALIZED_PROJECT_NAME, SCRIPT_DIR)
# Remote name which points to Apache git