Changeset 4736 for trunk


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

more install work

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeLinux.py

    r3545 r4736  
    3030    print("\n\tUsage: python "+sys.argv[0]+" [<GSAS-II script>]\n")
    3131    sys.exit()
    32 if __name__ == '__main__':
     32
     33if __name__ == '__main__' and sys.platform.startswith('linux'):
    3334    # find the main GSAS-II script if not on command line
    3435    if len(sys.argv) == 1:
  • 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.