File: //lib/python2.7/site-packages/vdo/vdomgmnt/Utils.pyo
ó
.Åt_c @ sr d Z d d l m Z m Z d d l Z d d l Z d d l Z d d l Z d d l Z d e
f d YZ d S( s
Utils - miscellaneous utilities for the VDO manager
$Id: //eng/vdo-releases/magnesium/src/python/vdo/vdomgmnt/Utils.py#1 $
iÿÿÿÿ( t CommandErrort
runCommandNt Utilsc B s e Z d Z d Z d e Z d e Z d e Z d e Z e d Z e d Z
e d Z e d Z
e d Z e d Z d Z RS( s' Utils contains miscellaneous utilities.i c C s; t j j g | j t j D] } t j j | ^ q S( s Takes a path or a colon-separated list of paths and makes
each one an absolute path. Paths that don't exist are left alone.( t ost pathsept joint splitt patht abspath( R t p( ( s6 /usr/lib/python2.7/site-packages/vdo/vdomgmnt/Utils.pyt abspathPath- s c C s t j d c t j | 7<d S( s Appends a directory or directories to the current PATH.
Arguments:
path (str): A directory or colon-separated list of directories.
t PATHN( R t environR ( R ( ( s6 /usr/lib/python2.7/site-packages/vdo/vdomgmnt/Utils.pyt appendToPath4 s c C s | d k o | | d @d k S( s0 Returns True iff its argument is a power of two.i i ( ( t i( ( s6 /usr/lib/python2.7/site-packages/vdo/vdomgmnt/Utils.pyt isPowerOfTwo>