Exemplo n.º 1
0
 def __init__(self):
     """ ctor
     """
     MbedLsToolsBase.__init__(self)
     self.os_supported.append('Ubuntu')
     self.hex_uuid_pattern = "usb-[0-9a-zA-Z_-]*_([0-9a-zA-Z]*)-.*"
     self.name_link_pattern = "(usb-[0-9a-zA-Z_-]*_[0-9a-zA-Z]*-.*$)"
     self.mount_media_pattern = "^/[a-zA-Z0-9/]* on (/[a-zA-Z0-9/]*) "
Exemplo n.º 2
0
 def __init__(self):
     """ ctor
     """
     MbedLsToolsBase.__init__(self)
     self.os_supported.append('Ubuntu')
     self.hex_uuid_pattern = "usb-[0-9a-zA-Z_-]*_([0-9a-zA-Z]*)-.*"
     self.name_link_pattern = "(usb-[0-9a-zA-Z_-]*_[0-9a-zA-Z]*-.*$)"
     self.mount_media_pattern = "^/[a-zA-Z0-9/]* on (/[a-zA-Z0-9/]*) "
Exemplo n.º 3
0
 def __init__(self):
     """ MbedLsToolsWin7 supports mbed enabled platforms detection across Windows7 OS family
     """
     MbedLsToolsBase.__init__(self)
     self.os_supported.append('Windows7')
     if sys.version_info[0] < 3:
         import _winreg as winreg
     else:
         import winreg
     self.winreg = winreg
Exemplo n.º 4
0
 def __init__(self):
     """ MbedLsToolsWin7 supports mbed enabled platforms detection across Windows7 OS family
     """
     MbedLsToolsBase.__init__(self)
     self.os_supported.append('Windows7')
     if sys.version_info[0] < 3:
         import _winreg as winreg
     else:
         import winreg
     self.winreg = winreg
Exemplo n.º 5
0
    def __init__(self):
        """! ctor
        """
        MbedLsToolsBase.__init__(self)
        self.os_supported.append("LinuxGeneric")
        self.hex_uuid_pattern = "usb-[0-9a-zA-Z_-]*_([0-9a-zA-Z]*)-.*"
        self.name_link_pattern = "(usb-[0-9a-zA-Z_-]*_[0-9a-zA-Z]*-.*$)"
        self.mount_media_pattern = "^/[a-zA-Z0-9/]* on (/[a-zA-Z0-9/]*) "

        self.nlp = re.compile(self.name_link_pattern)
        self.hup = re.compile(self.hex_uuid_pattern)
Exemplo n.º 6
0
    def __init__(self):
        """! ctor
        """
        MbedLsToolsBase.__init__(self)
        self.os_supported.append('LinuxGeneric')
        self.hex_uuid_pattern = "usb-[0-9a-zA-Z_-]*_([0-9a-zA-Z]*)-.*"
        self.name_link_pattern = "(usb-[0-9a-zA-Z_-]*_[0-9a-zA-Z]*-.*$)"
        self.mount_media_pattern = "^/[a-zA-Z0-9/]* on (/[a-zA-Z0-9/]*) "

        self.nlp = re.compile(self.name_link_pattern)
        self.hup = re.compile(self.hex_uuid_pattern)
    def __init__(self):
        """! ctor
        """
        MbedLsToolsBase.__init__(self)
        self.os_supported.append('LinuxGeneric')
        self.hex_uuid_pattern = "usb-[0-9a-zA-Z_-]*_([0-9a-zA-Z]*)-.*"
        # Since Ubuntu 15 DAplink serial port device can have pci- prefix, not only usb- one
        self.name_link_pattern = '((%s)-[0-9a-zA-Z_-]*_[0-9a-zA-Z]*-.*$)'% ('|'.join(["pci", "usb"]))
        self.mount_media_pattern = "^/[a-zA-Z0-9/]* on (/[a-zA-Z0-9/]*) "

        self.nlp = re.compile(self.name_link_pattern)
        self.hup = re.compile(self.hex_uuid_pattern)
Exemplo n.º 8
0
    def __init__(self):
        """! ctor
        """
        MbedLsToolsBase.__init__(self)
        self.os_supported.append('LinuxGeneric')
        self.hex_uuid_pattern = "usb-[0-9a-zA-Z_-]*_([0-9a-zA-Z]*)-.*"
        # Since Ubuntu 15 DAplink serial port device can have pci- prefix, not only usb- one
        self.name_link_pattern = '((%s)-[0-9a-zA-Z_-]*_[0-9a-zA-Z]*-.*$)' % (
            '|'.join(["pci", "usb"]))
        self.mount_media_pattern = "^/[a-zA-Z0-9/]* on (/[a-zA-Z0-9/]*) "

        self.nlp = re.compile(self.name_link_pattern)
        self.hup = re.compile(self.hex_uuid_pattern)