Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'omu/SalomeLauncher'
[modules/kernel.git]
/
src
/
KERNEL_PY
/
kernel
/
syshelper.py
diff --git
a/src/KERNEL_PY/kernel/syshelper.py
b/src/KERNEL_PY/kernel/syshelper.py
old mode 100755
(executable)
new mode 100644
(file)
index
eb83e79
..
dd7c9f8
--- a/
src/KERNEL_PY/kernel/syshelper.py
+++ b/
src/KERNEL_PY/kernel/syshelper.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-25,7
+25,7
@@
__author__="gboulant"
__date__ ="$21 mai 2010 18:00:23$"
__date__ ="$21 mai 2010 18:00:23$"
-def findFiles(rootpath, excludes=
[]
):
+def findFiles(rootpath, excludes=
None
):
"""
This looks after files recursively from the specified rootpath,
but without visiting directories whose basename is in the list
"""
This looks after files recursively from the specified rootpath,
but without visiting directories whose basename is in the list
@@
-34,6
+34,8
@@
def findFiles(rootpath, excludes=[]):
if not os.path.exists(rootpath):
raise RuntimeError("the path %s does not exists"%rootpath)
if not os.path.exists(rootpath):
raise RuntimeError("the path %s does not exists"%rootpath)
+ if excludes is None:
+ excludes = []
exclude_options=""
for excludepath in excludes:
exclude_options+="-e %s "%excludepath
exclude_options=""
for excludepath in excludes:
exclude_options+="-e %s "%excludepath