code: def get_package_folders(top_folder, root_path):
      
      _dirs = []
      out = []
      for root, dirs, files in os.walk(top_folder):
          for dir in dirs:
              _dirs.append(os.path.join(root, dir))
      for d in _dirs:
          _d = os.path.join(d, "*.*")
          out.append(_d.replace(root_path+"/", ""))
      return out
docs: Utility to generate dynamically the list of folders needed by the package_data setting
      ..
          package_data={
               'ontospy': ['viz/static/*.*', 'viz/templates/*.*', 'viz/templates/shared/*.*', 'viz/templates/splitter/*.*', 'viz/templates/markdown/*.*'],
          },
      ...