Commits

illume committed 6c51764

add some comments, and a doc string to warn_unwanted_files

  • Participants
  • Parent commits c9e613a

Comments (0)

Files changed (1)

 
 
 def warn_unwanted_files():
+    """ Used to warn about unneeded old files.
+    """
+
     # a temporary hack to warn about camera.so and camera.pyd.
     install_path= os.path.split(pygame.base.__file__)[0]
     extension_ext = os.path.splitext(pygame.base.__file__)[1]
 
+    # here are the .so/.pyd files we need to ask to remove.
     ext_to_remove = ["camera"]
+
+    # here are the .py/.pyo/.pyc files we need to ask to remove.
     py_to_remove = ["color"]
 
+
+    # See if any of the files are there.
     extension_files = map(lambda x:"%s%s" % (x,extension_ext), ext_to_remove)
 
     py_files = []
         unwanted_files.append( os.path.join( install_path, f ) )
 
 
+
     ask_remove = []
     for f in unwanted_files:
         if os.path.exists(f):