Changeset 4736 for trunk/makeMacApp.py


Ignore:
Timestamp:
Jan 7, 2021 3:53:49 PM (10 months ago)
Author:
toby
Message:

more install work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeMacApp.py

    r4725 r4736  
    77created in the directory where the GSAS-II script (.../GSASII/GSASII.py)
    88is located. A softlink to Python is created inside that app bundle,
    9 but the softlink name is GSAS-II so that GSAS-II shows up as the name
    10 of the app rather than  Python in the menu bar, etc. A soft link named
     9but the softlink name is GSAS-II so that "GSAS-II" shows up as the name
     10of the app in the menu bar, etc. rather than "Python". A soft link named
    1111GSAS-II.py, referencing the GSASII.py script, is created so that some file
    1212menu items also are labeled with GSAS-II (but not the right capitalization,
     
    1515This has been tested with several versions of Python interpreters
    1616from Anaconda and does not require pythonw (Python.app). It tests to
    17 make sure that a wx python script will run inside Python and if not,
     17make sure that a wxpython script will run inside the app but if not,
    1818it searches for a pythonw image and tries that.
    1919
     
    5151'''
    5252
    53 if __name__ == '__main__':
     53if __name__ == '__main__' and sys.platform == "darwin":
    5454    project="GSAS-II"
    5555
Note: See TracChangeset for help on using the changeset viewer.