Changeset 0b709f2c in sasview


Ignore:
Timestamp:
Mar 20, 2016 9:55:05 AM (8 years ago)
Author:
smk78
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
50008e3, 9e531f2
Parents:
54a2c927 (diff), f718919 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://github.com/SasView/sasview.git

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • sasview/sasview.py

    rd85c194 r558d64e  
    7979#wxcruft.trace_new_id() 
    8080 
    81 # The below will make sure that sasview application uses the matplotlib font 
    82 # bundled with sasview. 
    83 if hasattr(sys, 'frozen'): 
    84     mplconfigdir = os.path.join(os.path.expanduser("~"), '.matplotlib') 
    85     if not os.path.exists(mplconfigdir): 
    86         os.mkdir(mplconfigdir) 
    87     os.environ['MPLCONFIGDIR'] = mplconfigdir 
    88     reload(sys) 
    89     sys.setdefaultencoding("iso-8859-1") 
     81#Always use private .matplotlib setup to avoid conflicts with other 
     82#uses of matplotlib 
     83mplconfigdir = os.path.join(os.path.expanduser("~"),'.sasview','.matplotlib') 
     84if not os.path.exists(mplconfigdir): 
     85    os.mkdir(mplconfigdir) 
     86os.environ['MPLCONFIGDIR'] = mplconfigdir 
     87reload(sys) 
     88sys.setdefaultencoding("iso-8859-1") 
    9089from sas.sasgui.guiframe import gui_manager 
    9190from sas.sasgui.guiframe.gui_style import GUIFRAME 
  • src/sas/sasgui/guiframe/CategoryInstaller.py

    rd85c194 r1ca0ac0  
    176176            json.dump( master_category_dict, 
    177177                         open(serialized_file, 'wb') ) 
    178              
    179             try: 
    180                 #It happens only in source environment 
    181                 shutil.copyfile(serialized_file, default_file) 
    182             except: 
    183                 pass 
    184          
Note: See TracChangeset for help on using the changeset viewer.