Changeset 1be5202 in sasview


Ignore:
Timestamp:
May 25, 2016 2:51:03 AM (8 years ago)
Author:
wojciech
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:
b4994b7
Parents:
9528caa
Message:

Added .sasview mkdir in sasview.py so the program doesn't complain about .sasview/.matplotlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/sasview.py

    r558d64e r1be5202  
    8181#Always use private .matplotlib setup to avoid conflicts with other 
    8282#uses of matplotlib 
     83#Have to check if .sasview exists first  
     84sasdir = os.path.join(os.path.expanduser("~"),'.sasview') 
     85if not os.path.exists(sasdir): 
     86    os.mkdir(sasdir) 
    8387mplconfigdir = os.path.join(os.path.expanduser("~"),'.sasview','.matplotlib') 
    8488if not os.path.exists(mplconfigdir): 
Note: See TracChangeset for help on using the changeset viewer.