- Timestamp:
- Dec 4, 2013 7:34:31 PM (9 years ago)
- Location:
- gsas/linux/dist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsas/linux/dist/bootstrap.py
r1240 r1242 96 96 os.chmod(gsaspath + "/expgui/expgui", 97 97 stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) 98 if not os.path.exists(os.path.join(gsaspath,'EXPGUI.png')): 99 import shutil 100 shutil.copy(os.path.join(gsaspath,'EXPGUI_linux.png'), 101 os.path.join(gsaspath,'EXPGUI.png')) 102 shutil.copy(os.path.join(gsaspath,'GSAS_linux.png'), 103 os.path.join(gsaspath,'GSAS.png')) 98 104 if os.path.exists(os.path.expanduser('~/Desktop/')): 99 105 open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write(''' … … 120 126 ''' % (gsaspath,gsaspath)) 121 127 os.chmod(os.path.expanduser('~/Desktop/GSAS.desktop'), 122 stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) 128 stat.S_IWUSR | stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IXOTH) 129 else: 130 print 'No Desktop directory found, are you running this as root?' 131 #print 'Run '+str(os.path.join(gsaspath,'mkGnomeIcon.py'))+' from your user account(s)' -
gsas/linux/dist/makeGnomeIcon.py
r1235 r1242 1 # this needs more work before it can be used 2 import os,shutil 3 if not os.path.exists(os.path.join(gsaspath,'EXPGUI.png')): 4 shutil.copy(os.path.join(gsaspath,'EXPGUI_linux.png'), 5 os.path.join(gsaspath,'EXPGUI.png')) 6 shutil.copy(os.path.join(gsaspath,'GSAS_linux.png'), 7 os.path.join(gsaspath,'GSAS.png')) 1 8 if os.path.exists(os.path.expanduser('~/Desktop/')): 2 9 os.chmod(gsaspath + "/expgui/expgui",
Note: See TracChangeset
for help on using the changeset viewer.