def _shell_command(command):
 repo_dir = os.path.dirname(os.path.abspath(__file__))
 command_subprocess = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=repo_dir, universal_newlines=True)
 return command_subprocess.communicate()[0]

def _shell_command ( command ) : repo_dir = os . path . dirname ( os . path . abspath ( __file__ ) ) command_subprocess = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE , cwd = repo_dir , universal_newlines = True ) return command_subprocess . communicate ( ) [ 0 ]
return the first result of a shell command .