- Timestamp:
- Jan 7, 2021 3:53:49 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makeLinux.py
r3545 r4736 30 30 print("\n\tUsage: python "+sys.argv[0]+" [<GSAS-II script>]\n") 31 31 sys.exit() 32 if __name__ == '__main__': 32 33 if __name__ == '__main__' and sys.platform.startswith('linux'): 33 34 # find the main GSAS-II script if not on command line 34 35 if len(sys.argv) == 1: -
trunk/makeMacApp.py
r4725 r4736 7 7 created in the directory where the GSAS-II script (.../GSASII/GSASII.py) 8 8 is located. A softlink to Python is created inside that app bundle, 9 but the softlink name is GSAS-II so that GSAS-IIshows up as the name10 of the app rather than Python in the menu bar, etc. A soft link named9 but the softlink name is GSAS-II so that "GSAS-II" shows up as the name 10 of the app in the menu bar, etc. rather than "Python". A soft link named 11 11 GSAS-II.py, referencing the GSASII.py script, is created so that some file 12 12 menu items also are labeled with GSAS-II (but not the right capitalization, … … 15 15 This has been tested with several versions of Python interpreters 16 16 from Anaconda and does not require pythonw (Python.app). It tests to 17 make sure that a wx python script will run inside Python andif not,17 make sure that a wxpython script will run inside the app but if not, 18 18 it searches for a pythonw image and tries that. 19 19 … … 51 51 ''' 52 52 53 if __name__ == '__main__' :53 if __name__ == '__main__' and sys.platform == "darwin": 54 54 project="GSAS-II" 55 55
Note: See TracChangeset
for help on using the changeset viewer.