Changeset 1727:9cb1de35eb56 in orange-bioinformatics for _bioinformatics/obiGeneMania.py


Ignore:
Timestamp:
12/04/12 10:35:32 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Children:
1728:a7d42a8d1ed2, 1729:cfd3723ae0c6
Message:

Create the destination directory if it does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneMania.py

    r1719 r1727  
    706706        baseurl = "http://genemania.org/data/current/" 
    707707        directory = orngServerFiles.localpath("PPI") 
     708 
     709        if not os.path.exists(directory): 
     710            os.makedirs(directory) 
     711 
    708712        if taxid is None: 
    709713            taxid = cls.common_taxids() 
Note: See TracChangeset for help on using the changeset viewer.