Changeset 662:154ea1ea4f70


Ignore:
Timestamp:
17/07/12 19:18:19 (10 months ago)
Author:
Santiago Piccinini (SAn) <spiccinini@…>
Branch:
default
Message:

Prevented loading an empty directory as a valid theme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclope/themes.py

    r598 r662  
    4040    for name in names: 
    4141        filename = os.path.join(path, name, "__init__.py") 
    42         themes_[name] = imp.load_source(name, filename) 
     42        if os.path.exists(filename): 
     43            themes_[name] = imp.load_source(name, filename) 
    4344    return themes_ 
    4445 
Note: See TracChangeset for help on using the changeset viewer.