Skip to content
Snippets Groups Projects
Commit 1e24da02 authored by jkerdreu's avatar jkerdreu
Browse files

Better BLACKLIST handling

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2914 b32b6428-25c9-4566-ad07-03861ab6144f
parent 45f3aca6
No related branches found
No related tags found
No related merge requests found
......@@ -10,12 +10,12 @@ import sys
PYTHON = sys.executable
BASE=['./libs/lib','./libs/monitor','./libs/schemas']
BLACKLIST = ['./devices/sensors/lm_sensors',
'./devices/notifications/gtk-notify',
'./devices/notifications/conky',
'./devices/protocols/ZWave',
'./devices/protocols/SensFloor',
'./apps/fuse']
BLACKLIST = ['lm_sensors',
'gtk-notify',
'conky',
'ZWave',
'SensFloor',
'fuse']
def title(msg):
print("="*78)
......@@ -40,7 +40,8 @@ def search_setup():
for k in l:
path='/'.join(k.split('/')[0:-1])
if path in BASE:continue
if path in BLACKLIST:continue
last = path.split('/')[-1]
if last in BLACKLIST:continue
result.append(path)
return result
......@@ -50,9 +51,8 @@ def run():
setup_develop(p)
for p in search_setup():
setup_develop(p)
if __name__=='__main__':
run()
run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment