def run_inside_dir(command, dirpath):
 with inside_dir(dirpath):
  return subprocess.check_call(shlex.split(command))

def run_inside_dir ( command , dirpath ) : with inside_dir ( dirpath ) : return subprocess . check_call ( shlex . split ( command ) )
run a command from inside a given directory .