Changeset 65 for trunk/GSASII.py


Ignore:
Timestamp:
May 14, 2010 4:26:05 PM (12 years ago)
Author:
vondreel
Message:

remove all path setup code & replace with a simple import of GSASIIpath.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r63 r65  
    1111import matplotlib as mpl
    1212
     13## determine a binary path for the pyd files based on the host OS and the python version, 
     14## path is relative to location of this file
     15#if sys.platform == "win32":
     16#    bindir = 'binwin%d.%d' % sys.version_info[0:2]
     17#elif sys.platform == "darwin":
     18#    bindir = 'binmac%d.%d' % sys.version_info[0:2]
     19#else:
     20#    bindir = 'bin'
     21#if ospath.exists(ospath.join(sys.path[0],bindir)) and ospath.join(sys.path[0],bindir) not in sys.path:
     22#    sys.path.insert(0,ospath.join(sys.path[0],bindir))
     23
     24#try:
     25#    import pypowder as pyp
     26#except:
     27#    # create an app to display the error, since we are still loading routines at this point
     28#    app = wx.App()
     29#    app.MainLoop()
     30#    msg = wx.MessageDialog(None, message="Unable to load the GSAS powder computation module, pypowder",
     31#        caption="Import Error",style=wx.ICON_ERROR | wx.OK | wx.STAY_ON_TOP)
     32#    msg.ShowModal()
     33#    # this error is non-recoverable, so just quit
     34#    exit()
     35   
    1336# load the GSAS routines
     37import GSASIIpath
    1438import GSASIIIO as G2IO
    1539import GSASIIcomp as G2cmp
Note: See TracChangeset for help on using the changeset viewer.