wizard: Fix crash for old python versions
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Dec 2010 17:48:12 +0000 (17:48 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Dec 2010 17:48:12 +0000 (17:48 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4652 38d2e660-2303-0410-9eaa-f027e97ec537

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)