Changeset 11168:66793f8e1739 in orange


Ignore:
Timestamp:
11/05/12 15:24:34 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed Qt's plugin search path on Windows.

Location:
Orange/OrangeCanvas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/config.py

    r11097 r11168  
    1818    applicationVersion and the default settings format. Will only run once. 
    1919 
     20    .. note:: This should not be run before QApplication has been initialized. 
     21              Otherwise it can brake Qt's plugin search paths. 
     22 
    2023    """ 
    2124    # Set application name, version and org. domain 
     
    2427    QCoreApplication.setApplicationVersion("2.6") 
    2528    QSettings.setDefaultFormat(QSettings.IniFormat) 
     29 
    2630    # Make it a null op. 
    2731    global init 
  • Orange/OrangeCanvas/main.py

    r11167 r11168  
    7676    (options, args) = parser.parse_args(argv) 
    7777 
    78     open_config() 
    79  
    8078    levels = [logging.CRITICAL, 
    8179              logging.WARN, 
     
    9593        qt_argv += options.qt.split() 
    9694 
     95    log.debug("Starting CanvasApplicaiton with argv = %r.", qt_argv) 
     96    app = CanvasApplication(qt_argv) 
     97 
     98    # Note: config.init must be called after the QApplication constructor 
    9799    config.init() 
    98100    settings = QSettings() 
    99  
    100     log.debug("Starting CanvasApplicaiton with argv = %r.", qt_argv) 
    101     app = CanvasApplication(qt_argv) 
    102101 
    103102    stylesheet = options.stylesheet 
Note: See TracChangeset for help on using the changeset viewer.