gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] Adds Python 3 .pyc cache directory to clean list.


From: Fred Wright
Subject: [gpsd-dev] [PATCH] Adds Python 3 .pyc cache directory to clean list.
Date: Sun, 27 Mar 2016 01:10:01 -0700

TESTED:
Verified that "scons -c" now removes all of gps/__pycache__.
---
 SConstruct | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index 7d08358..4877bbf 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2021,7 +2021,8 @@ clean_misc = env.Alias('clean-misc')
 # Since manpage targets are disabled in clean mode, we cover them here
 env.Clean(clean_misc, all_manpages)
 # Clean compiled Python
-env.Clean(clean_misc, glob.glob('*.pyc') + glob.glob('gps/*.pyc'))
+env.Clean(clean_misc,
+          glob.glob('*.pyc') + glob.glob('gps/*.pyc') + ['gps/__pycache__'])
 # Clean coverage and profiling files
 env.Clean(clean_misc, glob.glob('*.gcno') + glob.glob('*.gcda'))
 # Clean Python coverage files
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]