Commits

Aleš Erjavec committed 9cb1de3

Create the destination directory if it does not exist.

Comments (0)

Files changed (1)

_bioinformatics/obiGeneMania.py

         
         baseurl = "http://genemania.org/data/current/"
         directory = orngServerFiles.localpath("PPI")
+
+        if not os.path.exists(directory):
+            os.makedirs(directory)
+
         if taxid is None:
             taxid = cls.common_taxids()