projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter always the menu warning, for nightly test.
[bertos.git]
/
wizard
/
plugins
/
codelite.py
diff --git
a/wizard/plugins/codelite.py
b/wizard/plugins/codelite.py
index cff2c60791cb7c68c8f4cbcb1e71c90c8726dd7e..156abe3c13fedf5883f861899bad389e2ad836b3 100644
(file)
--- a/
wizard/plugins/codelite.py
+++ b/
wizard/plugins/codelite.py
@@
-32,7
+32,7
@@
# Author: Lorenzo Berni <duplo@develer.com>
#
# Author: Lorenzo Berni <duplo@develer.com>
#
-import os
+import os
, sys
import const
import const
@@
-82,7
+82,12
@@
def findSources(path):
if not path.endswith(os.sep):
path += os.sep
file_dict = {}
if not path.endswith(os.sep):
path += os.sep
file_dict = {}
- for root, dirs, files in os.walk(path):
+ # also follow all symlinks under POSIX OSes
+ if os.name == 'posix' and sys.version_info >= (2, 6):
+ file_list = os.walk(path, followlinks=True)
+ else:
+ file_list = os.walk(path)
+ for root, dirs, files in file_list:
if root.find("svn") == -1:
file_dict[root.replace(path, "")] = {"dirs": [], "files": []}
for dir in dirs:
if root.find("svn") == -1:
file_dict[root.replace(path, "")] = {"dirs": [], "files": []}
for dir in dirs: