Changeset 772


Ignore:
Timestamp:
Oct 2, 2012 10:41:43 AM (9 years ago)
Author:
vondreele
Message:

add a print for bindir. Shows up at very beginning of GSAS-II startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpath.py

    r762 r772  
    3030        # is there a bin directory? (created by a local compile), if so put
    3131        # that at the top of the path
    32     if os.path.exists(os.path.join(loc,'bin')):
     32    if os.path.exists(os.path.join(loc,'bin')) and os.path.getsize(os.path.join(loc,'bin')):
    3333        bindir = 'bin'
    3434        if os.path.join(loc,'bin') not in sys.path:
    3535            sys.path.insert(0,os.path.join(loc,bindir))
     36print 'GSAS-II binary directory: ',os.path.join(loc,bindir)
    3637if bindir == None:
    37     print "Warning GSAS-II binary libraries not found, some sections of code will not function"
     38    raise Exception,"**** ERROR GSAS-II binary libraries not found, GSAS-II fails ****"
    3839
    3940# routines for looking a version numbers in files
Note: See TracChangeset for help on using the changeset viewer.