Changeset 1561 for trunk/GSASII.py


Ignore:
Timestamp:
Nov 4, 2014 10:59:58 AM (8 years ago)
Author:
vondreele
Message:

avoid error on startup with no file name
fix derivative errors for lattice parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1515 r1561  
    21112111        self.Tutorials = False      #used for changing default directory
    21122112        arg = sys.argv
    2113         if len(arg) > 1:
     2113        if len(arg) > 1 and arg[1]:
    21142114            self.GSASprojectfile = os.path.splitext(arg[1])[0]+'.gpx'
    21152115            self.dirname = os.path.dirname(arg[1])
     
    21202120                for item in self.Refine: item.Enable(True)
    21212121                self.EnableSeqRefineMenu()
    2122 
    21232122            except:
    21242123                print 'Error opening file',arg[1]
Note: See TracChangeset for help on using the changeset viewer.