[libvirt PATCH 1/3] gitignore: Ignore __pycache__ directory

Andrea Bolognani posted 3 patches 4 years, 10 months ago
[libvirt PATCH 1/3] gitignore: Ignore __pycache__ directory
Posted by Andrea Bolognani 4 years, 10 months ago
Unfortunately running Python scripts causes this directory to
be created in the *source* directory, and there doesn't seem
to be a way to prevent that from happening.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitignore b/.gitignore
index 6d44a50061..4695391342 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,9 @@
 *.orig
 .git-module-status
 
+# python related ignores
+__pycache__/
+
 # libvirt related ignores
 /build/
 /ci/scratch/
-- 
2.26.3

Re: [libvirt PATCH 1/3] gitignore: Ignore __pycache__ directory
Posted by Erik Skultety 4 years, 10 months ago
On Fri, Mar 19, 2021 at 06:39:29PM +0100, Andrea Bolognani wrote:
> Unfortunately running Python scripts causes this directory to
> be created in the *source* directory, and there doesn't seem
> to be a way to prevent that from happening.
> 
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet@redhat.com>