Update preset.
[bertos.git] / wizard / plugins / codelite.py
index 81403219aaeae39205c8025c6f42037a5203e0b9..156abe3c13fedf5883f861899bad389e2ad836b3 100644 (file)
@@ -32,7 +32,7 @@
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
-import os
+import os, sys
 
 import const
 
@@ -83,7 +83,7 @@ def findSources(path):
         path += os.sep
     file_dict = {}
     # also follow all symlinks under POSIX OSes
-    if os.name == 'posix':
+    if os.name == 'posix' and sys.version_info >= (2, 6):
         file_list = os.walk(path, followlinks=True)
     else:
         file_list = os.walk(path)