Changeset b277220 in sasview for src


Ignore:
Timestamp:
Sep 25, 2017 4:38:06 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
0315b63
Parents:
b963b20
Message:

fix error in handling of matplotlib environment variable in script mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasview/sasview.py

    rb963b20 rb277220  
    183183    # we are running may not actually need it; also, putting as little on the 
    184184    # path as we can 
    185     os.environ['MPLBACKEND'] = backend 
     185    if backend: 
     186        os.environ['MPLBACKEND'] = backend 
    186187 
    187188    # TODO: ... so much for not importing matplotlib unless we need it... 
Note: See TracChangeset for help on using the changeset viewer.