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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
<comment-ja>
???????????????????????????
</comment-ja>
<comment-en>
TODO: English Comment
</comment-en>

        def symlink2real(symlink):
    """
    ???????????????????????????
    
    
    TODO: English Comment
    
    """
    path = os.path.realpath(symlink)
    filename = os.path.basename(path)
    sfilename = filename.split(".")
    if len(sfilename) < 2:
        return (os.path.dirname(path), sfilename[0], "")
    else:
        name = ""
        for x in xrange(len(sfilename)-1):
            name = os.path.join(name, sfilename[x])
        return (os.path.dirname(path), name, sfilename[len(sfilename)-1])
        


src/k/a/karesansui-HEAD/karesansui/lib/virt/config_storage.py   karesansui(Download)
from karesansui.lib.utils import get_xml_parse        as XMLParse
from karesansui.lib.utils import get_xml_xpath        as XMLXpath
from karesansui.lib.utils import r_chgrp, r_chmod, symlink2real
from karesansui.lib.file.configfile import ConfigFile
 
    def get_symlink2real(self):
        return symlink2real(self.get_target_path())
 
    def load_xml_config(self,path):
        document = XMLParse(path)

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1networkstorageby1.py   karesansui(Download)
 
from karesansui.lib.virt.virt import KaresansuiVirtConnection
from karesansui.lib.utils import is_param, generate_phrase, create_file, \
    get_filelist, symlink2real
from karesansui.lib.const import ISCSI_COMMAND_GET, ISCSI_COMMAND_UPDATE, \
            for sym_link in dev_symlink_list:
                if symlink_regexp.match(sym_link):
                    real_path = symlink2real("%s/%s" % (ISCSI_DEVICE_DIR, sym_link))
                    disk_list.append({'symlink_name' : sym_link,
                                      'realpath_list' : real_path,

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1networkstorage.py   karesansui(Download)
from pysilhouette.command import dict2command
 
from karesansui.lib.utils import is_param, generate_phrase, create_file, \
    get_filelist, symlink2real
from karesansui.lib.const import ISCSI_COMMAND_GET, ISCSI_COMMAND_ADD, \
            for sym_link in dev_symlink_list:
                if symlink_regexp.search(sym_link):
                    real_path = symlink2real("%s/%s" % (ISCSI_DEVICE_DIR, sym_link))
                    is_blockable = True
                    if unmountable_regexp.search(sym_link):