Changeset 8955:256674a00be3 in orange


Ignore:
Timestamp:
09/12/11 15:28:07 (3 years ago)
Author:
mitar
Branch:
default
Convert:
b3a31d08663f9e499e0c1484fb283a8a3bdbf893
Message:

We want to follow symlinks when searching for widgets (Debian uses them when installing Orange), furthermore isdir follows symlinks so that check is enough.

Location:
orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/misc/addons.py

    r8092 r8955  
    664664                                     [(True, filename) for filename in 
    665665                                      glob.iglob(os.path.join(pdir, "*.py"))]: 
    666             if os.path.isdir(filename) or os.path.islink(filename): 
     666            if os.path.isdir(filename): 
    667667                continue 
    668668            try: 
  • orange/OrangeCanvas/orngRegistry.py

    r8042 r8955  
    119119     
    120120    for filename in glob.iglob(os.path.join(directory, "*.py")): 
    121         if os.path.isdir(filename) or os.path.islink(filename): 
     121        if os.path.isdir(filename): 
    122122            continue 
    123123         
Note: See TracChangeset for help on using the changeset viewer.