Changeset 4756


Ignore:
Timestamp:
Jan 9, 2021 9:32:48 PM (3 years ago)
Author:
toby
Message:

more mac work

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeMacApp.py

    r4754 r4756  
    103103        subprocess.call(["mkdir","-p",appPath])
    104104        subprocess.call(["tar","xzvf",os.path.join(path2GSAS,"g2app.tar.gz"),'-C',appPath])
     105        # create a link named GSAS-II.py to the script
     106        newScript = os.path.join(path2GSAS,'GSAS-II.py')
     107        if os.path.exists(newScript): # cleanup
     108            print("\nRemoving sym link",newScript)
     109            os.remove(newScript)
     110        os.symlink(os.path.split(script)[1],newScript)
    105111        print("\nCreated "+projectname+" app ("+str(appPath)+
    106112          ").\nViewing app in Finder so you can drag it to the dock if, you wish.")
Note: See TracChangeset for help on using the changeset viewer.