source: trunk/GSASII.py @ 3674

Last change on this file since 3674 was 3674, checked in by toby, 4 years ago

misc cosmetic & build changes

  • 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.3 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#GSASII
4########### SVN repository information ###################
5# $Date: 2018-10-15 16:45:38 +0000 (Mon, 15 Oct 2018) $
6# $Author: toby $
7# $Revision: 3674 $
8# $URL: trunk/GSASII.py $
9# $Id: GSASII.py 3674 2018-10-15 16:45:38Z toby $
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 platform
21import GSASIIpath
22
23__version__ = '1.0.0'
24
25if __name__ == '__main__':
26    try:
27        GSASIIpath.SetBinaryPath(True)
28    except:
29        print('Unable to run with current setup, do you want to update to the')
30        try:
31            if '2' in platform.python_version_tuple()[0]:           
32                ans = raw_input("latest GSAS-II version? Update ([Yes]/no): ")
33            else:
34                ans = input("latest GSAS-II version? Update ([Yes]/no): ")               
35        except:
36            ans = 'no'
37        if ans.strip().lower() == "no":
38            import sys
39            print('Exiting')
40            sys.exit()
41        print('Updating...')
42        GSASIIpath.svnUpdateProcess()
43    GSASIIpath.SetVersionNumber("$Revision: 3674 $")
44    GSASIIpath.InvokeDebugOpts()
45    import GSASIIdataGUI as G2gd   
46    G2gd.GSASIImain() # start the GUI
Note: See TracBrowser for help on using the repository browser.