OmniParser icon indicating copy to clipboard operation
OmniParser copied to clipboard

Remove Existing `__pycache__` Directories and Update `.gitignore` to handle `__pycache__` directory instead of `__pycache__` file

Open Vikranth3140 opened this issue 3 months ago • 2 comments

This PR closes #35 by addressing the issue of __pycache__ directories being present in the repository, despite being included in .gitignore. The __pycache__ directories contain Python bytecode files (.pyc) that are generated during runtime and are not necessary for the source code. These files can lead to unnecessary clutter and inconsistencies across environments.

Changes Made:

  1. Removed all existing __pycache__ directories from the repository using:
    git rm -r --cached **/__pycache__
    
  2. Updated .gitignore to explicitly exclude the __pycache__/ directory (with a trailing slash) instead of just __pycache__. The trailing slash ensures that only directories named __pycache__ are ignored, rather than files, which prevents any unintentional tracking of these runtime-generated directories in the future.

Vikranth3140 avatar Oct 27 '24 15:10 Vikranth3140