1 --- bootstrap.py 2011-10-18 12:20:42.084632296 -0500
2 +++ bootstrap.py 2011-10-18 12:21:52.198363940 -0500
5 +#!/usr/bin/env python2
6 import os, stat, sys, platform, subprocess
7 home = 'https://subversion.xor.aps.anl.gov/EXPGUI/'
11 p = subprocess.call(cmd)
13 -if sys.platform.startswith('linux'):
14 - os.chmod(gsaspath + "/expgui/expgui",
15 - stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH)
16 - if os.path.exists(os.path.expanduser('~/Desktop/')):
17 - open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write('''
23 -Exec=%s/expgui/expgui
26 -''' % (gsaspath,gsaspath))
27 - os.chmod(os.path.expanduser('~/Desktop/EXPGUI.desktop'),
28 - stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH)
29 - open(os.path.expanduser('~/Desktop/GSAS.desktop'),'w').write('''
38 -''' % (gsaspath,gsaspath))
39 - os.chmod(os.path.expanduser('~/Desktop/GSAS.desktop'),
40 - stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH)