¡@

Home 

OpenStack Study: paths.py

OpenStack Index

**** CubicPower OpenStack Study ****

def basedir_def(*args):

    """Return an uninterpolated path relative to $pybasedir."""

    return os.path.join('$pybasedir', *args)

**** CubicPower OpenStack Study ****

def bindir_def(*args):

    """Return an uninterpolated path relative to $bindir."""

    return os.path.join('$bindir', *args)

**** CubicPower OpenStack Study ****

def state_path_def(*args):

    """Return an uninterpolated path relative to $state_path."""

    return os.path.join('$state_path', *args)

**** CubicPower OpenStack Study ****

def basedir_rel(*args):

    """Return a path relative to $pybasedir."""

    return os.path.join(CONF.pybasedir, *args)

**** CubicPower OpenStack Study ****

def bindir_rel(*args):

    """Return a path relative to $bindir."""

    return os.path.join(CONF.bindir, *args)

**** CubicPower OpenStack Study ****

def state_path_rel(*args):

    """Return a path relative to $state_path."""

    return os.path.join(CONF.state_path, *args)