Changeset 1242 for gsas


Ignore:
Timestamp:
Dec 4, 2013 7:34:31 PM (9 years ago)
Author:
toby
Message:

more linux fixes

Location:
gsas/linux/dist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsas/linux/dist/bootstrap.py

    r1240 r1242  
    9696    os.chmod(gsaspath + "/expgui/expgui",
    9797             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'))
    98104    if os.path.exists(os.path.expanduser('~/Desktop/')):
    99105        open(os.path.expanduser('~/Desktop/EXPGUI.desktop'),'w').write('''
     
    120126''' % (gsaspath,gsaspath))
    121127        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
     2import os,shutil
     3if 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'))
    18if os.path.exists(os.path.expanduser('~/Desktop/')):
    29    os.chmod(gsaspath + "/expgui/expgui",
Note: See TracChangeset for help on using the changeset viewer.