Changeset 1496:f34d9864f0f6 in orange-bioinformatics


Ignore:
Timestamp:
10/13/11 14:45:30 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
b864c6fd04fb048bbc77c3188f818d848a20f0e9
Message:

Fixed download function for STRING.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiPPI.py

    r1495 r1496  
    533533            tmpfilename = os.path.join(dir, basename + ".part") 
    534534            tmpfile = open(tmpfilename, "wb") 
    535             shutil.copyfileobj(stream, os.path.join(dir, basename)) 
     535            shutil.copyfileobj(stream, tmpfile) 
    536536            tmpfile.close() 
    537             os.rename(tmpfilename, basename) 
     537            os.rename(tmpfilename, os.path.join(dir, basename)) 
    538538        base_url = "http://www.string-db.org/newstring_download/" #protein.links.v9.0.txt.gz 
    539539        links = base_url + "protein.links.{version}.txt.gz" 
Note: See TracChangeset for help on using the changeset viewer.