Changeset 1961 for trunk/GSASII.py


Ignore:
Timestamp:
Aug 25, 2015 4:41:05 PM (6 years ago)
Author:
toby
Message:

save package info in GPX; display only in Debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1960 r1961  
    36763676        self.main.Show()
    36773677        self.SetTopWindow(self.main)
     3678        # save the current package versions
     3679        self.main.PackageVersions = {}
     3680        self.main.PackageVersions['Python'] = sys.version.split()[0]
     3681        for p in (wx,mpl,np,sp,ogl):
     3682            self.main.PackageVersions[p.__name__] = p.__version__
     3683        try:
     3684            self.main.PackageVersions[Image.__name__] = Image.VERSION
     3685        except:
     3686            try:
     3687                from PIL import PILLOW_VERSION
     3688                self.main.PackageVersions[Image.__name__] = PILLOW_VERSION
     3689            except:
     3690                pass
     3691        self.main.PackageVersions[' Platform'] = sys.platform+' '+platform.architecture()[0]+' '+platform.machine()
    36783692        # DEBUG: jump to sequential results
    36793693        #Id = G2gd.GetPatternTreeItemId(self.main,self.main.root,'Sequential results')
     
    36923706    #     self.main.OnFileOpen(None,filename)
    36933707    # removed because this gets triggered when a file is on the command line in canopy 1.4 -- not likely used anyway
    3694    
     3708       
    36953709def main():
    36963710    '''Start up the GSAS-II application'''
Note: See TracChangeset for help on using the changeset viewer.