Changeset 9a945a2 in sasview


Ignore:
Timestamp:
Oct 27, 2011 3:34:54 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
cd8d4a7
Parents:
eaa85e7
Message:

Write to user home if the matplotlib config directory can't be found (instead of app install directory)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    r476348c r9a945a2  
    1616# bundled with sansview.  
    1717if hasattr(sys, 'frozen'): 
    18     mplconfigdir = os.path.join(sys.prefix, '.matplotlib') 
     18    mplconfigdir = os.path.join(os.path.expenduser("~"), '.matplotlib') 
    1919    if not os.path.exists(mplconfigdir): 
    2020        os.mkdir(mplconfigdir) 
Note: See TracChangeset for help on using the changeset viewer.