Changeset 4515 for trunk/GSASIIpath.py


Ignore:
Timestamp:
Jul 7, 2020 5:42:34 PM (3 years ago)
Author:
toby
Message:

new capability: general parameter access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpath.py

    r4487 r4515  
    10441044    subprocess.Popen(["osascript","-e",script])
    10451045
     1046def 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 = '''
     1054set bash to "/bin/bash"
     1055set filename to "{}"
     1056
     1057tell application "Terminal"
     1058     activate
     1059     do script bash & " " & filename & "; exit"
     1060end tell
     1061'''.format(script)
     1062    subprocess.Popen(["osascript","-e",osascript])
     1063   
    10461064def findConda():
    10471065    '''Determines if GSAS-II has been installed as g2conda or gsas2full
Note: See TracChangeset for help on using the changeset viewer.