wizard: Fix crash for old python versions
[bertos.git] / wizard / plugins / codelite.py
index 81403219aaeae39205c8025c6f42037a5203e0b9..91979d41910453f07c2ad42c15ebdb74e52d33f7 100644 (file)
@@ -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)