X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fplugins%2Fcodelite.py;h=156abe3c13fedf5883f861899bad389e2ad836b3;hb=4278d44ef7681c56f4bd16615c3c4d9338112df4;hp=81403219aaeae39205c8025c6f42037a5203e0b9;hpb=fb256b1f08e223e61a6356714be40876a28eeab2;p=bertos.git diff --git a/wizard/plugins/codelite.py b/wizard/plugins/codelite.py index 81403219..156abe3c 100644 --- a/wizard/plugins/codelite.py +++ b/wizard/plugins/codelite.py @@ -32,7 +32,7 @@ # Author: Lorenzo Berni # -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)