Changeset 2377 for trunk/GSASII.py


Ignore:
Timestamp:
Jul 13, 2016 10:04:08 PM (5 years ago)
Author:
toby
Message:

add patch for locale mis-set on OSX machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2363 r2377  
    2929import scipy as sp
    3030import wx
     31try:  # patch for LANG environment var problem on occasional OSX machines
     32    import locale
     33    locale.getdefaultlocale()
     34except ValueError:
     35    print('Fixing location (see https://github.com/matplotlib/matplotlib/issues/5420.)')
     36    os.environ['LC_ALL'] = 'en_US.UTF-8'
     37    locale.getdefaultlocale()
    3138import matplotlib as mpl
    3239try:
Note: See TracChangeset for help on using the changeset viewer.