Changeset 1632:9cf919d0f343 in orange-bioinformatics for scripts/download_datasets.py


Ignore:
Timestamp:
04/16/12 19:53:28 (2 years ago)
Author:
mitar
Branch:
default
Message:

Fixing imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/download_datasets.py

    r1631 r1632  
    88        print "Downloading essential genomics databases" 
    99        if sys.platform == "win32": 
    10             os.system("start " + sys.prefix+"""\\python.exe -c "import orngServerFiles; orngServerFiles.update_by_tags(tags=['essential'])" """) 
     10            os.system("start " + sys.prefix+"""\\python.exe -c "from Orange.orng import orngServerFiles; orngServerFiles.update_by_tags(tags=['essential'])" """) 
    1111        else: 
    12             import orngServerFiles 
     12            from Orange.orng import orngServerFiles 
    1313            orngServerFiles.update_by_tags(tags=["essential"]) 
    1414    except Exception, ex: 
     
    2020    print "widget in Orange Canvas or use the orngServerFiles module:" 
    2121    print 
    22     print "    import orngServerFiles" 
     22    print "    from Orange.orng import orngServerFiles" 
    2323    print "    orgnServerFiles.consoleupdate()" 
    2424    print 
Note: See TracChangeset for help on using the changeset viewer.