Changeset 4515 for trunk/GSASIIpath.py
- Timestamp:
- Jul 7, 2020 5:42:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpath.py
r4487 r4515 1044 1044 subprocess.Popen(["osascript","-e",script]) 1045 1045 1046 def MacRunScript(script): 1047 '''Start a bash script in a new terminal window. 1048 Used on Mac OS X only. 1049 1050 :param str script: file name for a bash script 1051 ''' 1052 script = os.path.abspath(script) 1053 osascript = ''' 1054 set bash to "/bin/bash" 1055 set filename to "{}" 1056 1057 tell application "Terminal" 1058 activate 1059 do script bash & " " & filename & "; exit" 1060 end tell 1061 '''.format(script) 1062 subprocess.Popen(["osascript","-e",osascript]) 1063 1046 1064 def findConda(): 1047 1065 '''Determines if GSAS-II has been installed as g2conda or gsas2full
Note: See TracChangeset
for help on using the changeset viewer.