source: trunk/GSASII.py @ 3420

Last change on this file since 3420 was 3420, checked in by vondreele, 3 years ago

update hkl lines after spin change (still does nothing, but this is needed)
show bin directory when GSAS-II starts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Author Revision URL Id
File size: 1.1 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#GSASII
4########### SVN repository information ###################
5# $Date: 2018-06-04 19:18:05 +0000 (Mon, 04 Jun 2018) $
6# $Author: vondreele $
7# $Revision: 3420 $
8# $URL: trunk/GSASII.py $
9# $Id: GSASII.py 3420 2018-06-04 19:18:05Z vondreele $
10########### SVN repository information ###################
11'''
12*GSAS-II GUI Script*
13=====================
14
15Script to start the GSAS-II graphical user interface. This script imports GSASIIpath,
16sets a few misc. values and then launches :func:`GSASIIdataGUI.GSASIImain`, which
17creates a wx.Application which in turns creates the GUI.
18'''
19
20import GSASIIpath
21
22__version__ = '1.0.0'
23
24if __name__ == '__main__':
25    try:
26        GSASIIpath.SetBinaryPath(True)
27    except:
28        print('Unable to run with current setup, do you want to update to the')
29        try:
30            ans = raw_input("latest GSAS-II version? Update ([Yes]/no): ")
31        except:
32            ans = 'no'
33        if ans.strip().lower() == "no":
34            import sys
35            print('Exiting')
36            sys.exit()
37        print('Updating...')
38        GSASIIpath.svnUpdateProcess()
39    GSASIIpath.SetVersionNumber("$Revision: 3420 $")
40    GSASIIpath.InvokeDebugOpts()
41    import GSASIIdataGUI as G2gd   
42    G2gd.GSASIImain() # start the GUI
Note: See TracBrowser for help on using the repository browser.