Changeset 1348:3642b9d48d66 in orange-bioinformatics for obiKEGG.py


Ignore:
Timestamp:
03/15/11 14:31:14 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
85f2049ba3aefee583a7917b2ec65abfe67cb6d6
Message:

Removed dependency on orngServerFiles.createPath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiKEGG.py

    r1341 r1348  
    178178    return cls 
    179179 
     180def _create_path_for_file(target):  
     181    try: 
     182        os.makedirs(os.path.dirname(target)) 
     183    except OSError: 
     184        pass 
     185 
    180186def downloader(func): 
    181187    def wrapper(*args, **kwargs): 
     
    183189        def download(src, dst): 
    184190            if isinstance(dst, basestring): 
    185                 orngServerFiles.createPathForFile(dst) 
     191                _create_path_for_file(dst) 
    186192                dst = open(dst, "wb") 
    187193            shutil.copyfileobj(src, dst) 
Note: See TracChangeset for help on using the changeset viewer.