code: def parse_python_paths(self, args):
          
          paths = []
          do_paths = False
          for arg in args:
  
              if arg == '--pythonpath':
                  # space separated
                  do_paths = True
                  continue
  
              elif arg.startswith('--pythonpath='):
                  # '=' separated
                  do_paths = True
                  arg = arg[13:]
  
              if do_paths:
                  if arg.startswith('-'):
                      # stop thinking it's a python path
                      do_paths = False
                      continue
                  # ok add the python path
                  if '*' in arg:
                      paths.extend(glob.glob(arg))
                  else:
                      paths.append(arg)
  
          return paths
docs: optparse doesn't manage stuff like this:
              --pythonpath /my/modules/*
          but it can manages
              --pythonpath=/my/modules/*/
          (but without handling globing)
          This method handles correctly the one without "=" and manages globing