Changeset 985ad94 in sasview for src


Ignore:
Timestamp:
Aug 4, 2017 7:17:06 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
ee18d33
Parents:
7adc2a8
Message:

Fixed pyinstaller build

Location:
src/sas/qtgui/Utilities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    r6ff2eb3 r985ad94  
    9696 
    9797## TODO: CHANGE FOR SHIPPED PATH IN RELEASE 
    98 HELP_DIRECTORY_LOCATION = "docs/sphinx-docs/build/html" 
     98if os.path.splitext(sys.argv[0])[1].lower() != ".py": 
     99     HELP_DIRECTORY_LOCATION = "doc" 
     100else: 
     101     HELP_DIRECTORY_LOCATION = "docs/sphinx-docs/build/html" 
    99102IMAGES_DIRECTORY_LOCATION = HELP_DIRECTORY_LOCATION + "/_images" 
    100103 
  • src/sas/qtgui/Utilities/IPythonWidget.py

    • Property mode changed from 100755 to 100644
    r83eb5208 r985ad94  
     1def new_load_qt(api_options): 
     2    from PyQt4 import QtCore, QtGui, QtSvg 
     3    return QtCore, QtGui, QtSvg, 'pyqt' 
     4 
     5def qtconsole_new_load_qt(api_options): 
     6    from PyQt4 import QtCore, QtGui, QtSvg 
     7 
     8    # Alias PyQt-specific functions for PySide compatibility. 
     9    QtCore.Signal = QtCore.pyqtSignal 
     10    QtCore.Slot = QtCore.pyqtSlot 
     11    return QtCore, QtGui, QtSvg, 'pyqt' 
     12 
     13# Do some monkey patching to satisfy pyinstaller complaining 
     14# about pyside/pyqt confusion 
     15from IPython.external import  qt_loaders 
     16qt_loaders.load_qt = new_load_qt 
     17 
     18from qtconsole import qt_loaders as qtconsole_qt_loaders 
     19qtconsole_qt_loaders.load_qt = qtconsole_new_load_qt 
     20 
     21 
    122from qtconsole.rich_jupyter_widget import RichJupyterWidget 
    223from qtconsole.inprocess import QtInProcessKernelManager 
Note: See TracChangeset for help on using the changeset viewer.