code: def _get_expanded_classpath(classpath):
      
      if classpath is None or classpath == '':
          return ''
  
      #  so this set comprehension takes paths that end with * to be globbed to find the jars, and then
      #  recombined back into a colon separated list of jar paths, removing dupes and using full file paths
      jars = (os.path.pathsep).join((os.path.pathsep).join([os.path.abspath(jarpath) for jarpath in _glob.glob(path)])
                      for path in classpath.split(os.path.pathsep))
      logging.getLogger(__name__).debug('classpath being used: %s' % jars)
      return jars
docs: Take a classpath of the form:
        /etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*: ...
  
      and return it expanded to all the JARs (and nothing else):
        /etc/hadoop/conf:/usr/lib/hadoop/lib/netty-3.6.2.Final.jar:/usr/lib/hadoop/lib/jaxb-api-2.2.2.jar: ...
  
      mentioned in the path