Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/r/o/rospkg-1.0.28/src/rospkg/rospack.py   rospkg(Download)
from xml.etree.cElementTree import ElementTree
 
from .common import MANIFEST_FILE, PACKAGE_FILE, STACK_FILE, ResourceNotFound
from .environment import get_ros_paths
from .manifest import parse_manifest_file, InvalidManifest
            root = ElementTree(None, os.path.join(d, PACKAGE_FILE))
            is_metapackage = root.find('./export/metapackage') is not None
            if ((manifest_name == STACK_FILE and is_metapackage) or
                (manifest_name == MANIFEST_FILE and not is_metapackage) or
                manifest_name == PACKAGE_FILE):
        d = self.get_path(package)
        while d and os.path.dirname(d) != d:
            stack_file = os.path.join(d, STACK_FILE)
            if os.path.exists(stack_file):
                return os.path.basename(d)
          resources. If `None` (default), use environment ROS path.
        """
        super(RosStack, self).__init__(STACK_FILE, ros_paths)
 
    def packages_of(self, stack):

src/r/o/rospkg-HEAD/src/rospkg/rospack.py   rospkg(Download)
from xml.etree.cElementTree import ElementTree
 
from .common import MANIFEST_FILE, PACKAGE_FILE, STACK_FILE, ResourceNotFound
from .environment import get_ros_paths
from .manifest import parse_manifest_file, InvalidManifest
            root = ElementTree(None, os.path.join(d, PACKAGE_FILE))
            is_metapackage = root.find('./export/metapackage') is not None
            if ((manifest_name == STACK_FILE and is_metapackage) or
                (manifest_name == MANIFEST_FILE and not is_metapackage) or
                manifest_name == PACKAGE_FILE):
        d = self.get_path(package)
        while d and os.path.dirname(d) != d:
            stack_file = os.path.join(d, STACK_FILE)
            if os.path.exists(stack_file):
                return os.path.basename(d)
          resources. If `None` (default), use environment ROS path.
        """
        super(RosStack, self).__init__(STACK_FILE, ros_paths)
 
    def packages_of(self, stack):

src/r/o/rospkg-1.0.28/src/rospkg/manifest.py   rospkg(Download)
import xml.dom.minidom as dom
 
from .common import MANIFEST_FILE, PACKAGE_FILE, STACK_FILE
 
# stack.xml and manifest.xml have the same internal tags right now
    if manifest_name == MANIFEST_FILE:
        type_ = 'package'
    elif manifest_name == STACK_FILE:
        type_ = 'stack'
 

src/r/o/rospkg-HEAD/src/rospkg/manifest.py   rospkg(Download)
import xml.dom.minidom as dom
 
from .common import MANIFEST_FILE, PACKAGE_FILE, STACK_FILE
 
# stack.xml and manifest.xml have the same internal tags right now
    if manifest_name == MANIFEST_FILE:
        type_ = 'package'
    elif manifest_name == STACK_FILE:
        type_ = 'stack'
 

src/r/o/rospkg-1.0.28/src/rospkg/__init__.py   rospkg(Download)
from ._version import __version__
 
from .common import MANIFEST_FILE, STACK_FILE, ResourceNotFound
from .environment import get_ros_root, get_ros_package_path, get_ros_home, \
     get_log_dir, get_test_results_dir, on_ros_path, get_ros_paths, get_etc_ros_dir

src/r/o/rospkg-HEAD/src/rospkg/__init__.py   rospkg(Download)
from ._version import __version__
 
from .common import MANIFEST_FILE, STACK_FILE, ResourceNotFound
from .environment import get_ros_root, get_ros_package_path, get_ros_home, \
     get_log_dir, get_test_results_dir, on_ros_path, get_ros_paths, get_etc_ros_dir