1. biolab
  2. Untitled project
  3. orange-bioinformatics

Commits

Aleš Erjavec  committed 097b6ae

Fixed download function for STRING.

  • Participants
  • Parent commits 39b580f
  • Branches default

Comments (0)

Files changed (1)

File obiPPI.py

View file
             basename = posixpath.basename(address)
             tmpfilename = os.path.join(dir, basename + ".part")
             tmpfile = open(tmpfilename, "wb")
-            shutil.copyfileobj(stream, tmpfile)
+            shutil.copyfileobj(stream, os.path.join(dir, basename))
             tmpfile.close()
             os.rename(tmpfilename, basename)
         base_url = "http://www.string-db.org/newstring_download/" #protein.links.v9.0.txt.gz