Ignore:
Timestamp:
Jul 5, 2017 7:13:15 PM (4 years ago)
Author:
toby
Message:

more Bind()'s to dataWindow; better error msg on bindist problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIpath.py

    r2905 r2912  
    634634        print('GSAS-II binary directory: {}'.format(binpath))
    635635        sys.path.insert(0,binpath)
    636     #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    637     #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    638     # patch: use old location based on the host OS and the python version, 
    639     # path is relative to location of the script that is called as well as this file
    640636    # this must be imported before anything that imports any .pyd/.so file for GSASII
    641637    else:
    642         print('\n'+75*'*')
    643         print('  Warning. Using an old-style GSAS-II binary library. This is unexpected')
    644         print('  and will break in future GSAS-II versions. Please contact toby@anl.gov')
    645         print('  so we can learn what is not working on your installation.')
     638        #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     639        #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     640        # patch: use old location based on the host OS and the python version, 
     641        # path is relative to location of the script that is called as well as this file
    646642        bindir = None
    647643        if sys.platform == "win32":
     
    666662        # that at the top of the path
    667663            fpth = os.path.join(loc,bindir)
     664            binpath = fpth
    668665            if TestSPG(fpth):
    669                 binpath = fpth
    670666                sys.path.insert(0,binpath)
     667                print('\n'+75*'*')
     668                print('  Warning. Using an old-style GSAS-II binary library. This is unexpected')
     669                print('  and will break in future GSAS-II versions. Please contact toby@anl.gov')
     670                print('  so we can learn what is not working on your installation.')
    671671                print('GSAS-II binary directory: {}'.format(binpath))
    672672                print(75*'*')
    673673                break
    674674        else:
    675     #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     675        # end patch
     676        #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     677        #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     678            print(75*'*')
     679            print('Use of GSAS-II binary directory {} failed!'.format(binpath))
     680            print(75*'*')
    676681            raise Exception,"**** ERROR GSAS-II binary libraries not found, GSAS-II cannot run ****"
    677682
Note: See TracChangeset for help on using the changeset viewer.