buildframework/helium/sf/python/pythoncore/lib/nokia/gscm.py
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    42 
    42 
    43 def __get_gscm_info(method, dbname):
    43 def __get_gscm_info(method, dbname):
    44     """ Generic method that call function 'method' on GSCM wrapper script. """
    44     """ Generic method that call function 'method' on GSCM wrapper script. """
    45     (f_desc, filename) = tempfile.mkstemp()
    45     (f_desc, filename) = tempfile.mkstemp()
    46     f_file = os.fdopen(f_desc, 'w')
    46     f_file = os.fdopen(f_desc, 'w')
    47     f_file.write(pkg_resources.resource_string(__name__, "get_gscm_info.pl"))# pylint: disable-msg=E1101
    47     f_file.write(pkg_resources.resource_string(__name__, "get_gscm_info.pl"))# pylint: disable=E1101
    48     f_file.close()
    48     f_file.close()
    49     command = "perl " + filename
    49     command = "perl " + filename
    50     command += " %s %s" % (method, dbname)
    50     command += " %s %s" % (method, dbname)
    51     _logger.debug("Running command: %s" % command)
    51     _logger.debug("Running command: %s" % command)
    52     (output, status) = _execute(command)
    52     (output, status) = _execute(command)