コード例 #1
0
ファイル: app.py プロジェクト: CraigLoomis/eups
def getSetupVersion(productName, eupsenv=None):
    """
    return the version name for the currently setup version of a given product.

    @param productName   the name of the setup product
    @param eupsenv       the Eups instance to use; if None (default), a 
                             default will be created.
    @throws ProductNotFound  if the requested product is not setup
    """
    if not eupsenv:
        eupsenv = Eups()
    version = eupsenv.findSetupVersion(productName)[0]
    if not version:
        raise ProductNotFound(productName, msg="%s is not setup" % productName)
    return version
コード例 #2
0
def getSetupVersion(productName, eupsenv=None):
    """
    return the version name for the currently setup version of a given product.

    @param productName   the name of the setup product
    @param eupsenv       the Eups instance to use; if None (default), a 
                             default will be created.
    @throws ProductNotFound  if the requested product is not setup
    """
    if not eupsenv:
        eupsenv = Eups()
    version = eupsenv.findSetupVersion(productName)[0]
    if not version:
        raise ProductNotFound(productName, msg="%s is not setup" % productName)
    return version