Changeset 9346:339b5519b201 in orange


Ignore:
Timestamp:
12/13/11 14:57:35 (2 years ago)
Author:
markotoplak
Branch:
default
Convert:
5db73e8aaca8a3cb6f03217ace16c36d6c2700c7
Message:

orange2to25 only import Orange instead of importing all submodules individually.

Location:
orange
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • orange/fixes/fix_changed_names.py

    r9301 r9346  
    674674#            else: 
    675675#                package = new_name.rsplit(".", 1)[0] 
    676             touch_import(None, package, node) 
     676 
     677            def orange_to_root(package): 
     678                return "Orange" if package.startswith("Orange.") else package 
     679 
     680            touch_import(None, orange_to_root(package), node) 
    677681            return new 
    678682         
  • orange/orange2to25.py

    r8042 r9346  
    156156        else: 
    157157            try: 
    158                 rt.refactor(args, options.write, options.doctests_only, 
     158                rt.refactor(args[1:], options.write, options.doctests_only, 
    159159                            options.processes) 
    160160            except refactor.MultiprocessingUnsupported: 
Note: See TracChangeset for help on using the changeset viewer.