Skip to content

Commit

Permalink
Update aksetup
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 9, 2015
1 parent ba47ff5 commit cf145f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aksetup_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ def substitute(substitutions, fname):
def _run_git_command(cmd):
git_error = None
from subprocess import Popen, PIPE
stdout = None
try:
popen = Popen(["git"] + cmd, stdout=PIPE)
stdout, stderr = popen.communicate()
Expand All @@ -722,8 +723,11 @@ def _run_git_command(cmd):
print(git_error)
print("Hit Ctrl-C now if you'd like to think about the situation.")
print(DASH_SEPARATOR)
count_down_delay(delay=5)
return stdout.decode("utf-8"), git_error
count_down_delay(delay=0)
if stdout:
return stdout.decode("utf-8"), git_error
else:
return '', "(subprocess call to git did not succeed)"


def check_git_submodules():
Expand Down
1 change: 1 addition & 0 deletions configure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /usr/bin/env python

from __future__ import absolute_import

from aksetup_helper import configure_frontend
configure_frontend()

0 comments on commit cf145f5

Please sign in to comment.