Changeset 10382:5e48d5b6c1ef in orange


Ignore:
Timestamp:
02/27/12 13:42:21 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
8f60237d3bdbcec485f4ac4a43207bd38cc58899
Message:

Fixed downloadPyd script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/orng/downloadPyd.py

    r9671 r10382  
    1111fleurl = baseurl + "%s.pyd" 
    1212 
    13 op = filter(lambda x:x[-7:].lower() in ["\\orange", "/orange"], sys.path) 
     13op = filter(lambda x:x[-12:].lower() in ["\\orange\\orng", "/orange/orng"], sys.path) 
    1414if not op: 
    1515    print "Orange is not found on the Python's path" 
     16     
     17op = os.path.dirname(op[0]) 
    1618 
    17 print "Downloading to %s (for Python %i.%i)" % (op[0], sys.version_info[0], sys.version_info[1]) 
    18 os.chdir(op[0]) 
     19print "Downloading to %s (for Python %i.%i)" % (op, sys.version_info[0], sys.version_info[1]) 
     20os.chdir(op) 
    1921 
    2022def rep(blk_cnt, blk_size, tot_size): 
Note: See TracChangeset for help on using the changeset viewer.