@@ -3439,10 +3439,9 @@ def findrmcprofile():
34393439 the location where the GSAS-II Python files are found,
34403440 the location where GSAS-II binaries are found, the current
34413441 working directory and the location where the Python
3442- interpreter is found. On MacOS the commonly-used install
3443- locations of /Applications/RMCProfile.app/Contents/MacOS/exe/
3444- and ~/Applications/RMCProfile.app/Contents/MacOS/exe/
3445- are also checked.
3442+ interpreter is found.
3443+ On MacOS the only place where RMCProfile can be installed
3444+ is /Applications/ so only that is checked.
34463445
34473446 :returns: the full path to a python executable that is assumed to
34483447 have fullrmc installed or None, if it was not found.
@@ -3461,8 +3460,10 @@ def findrmcprofile():
34613460 lookfor = "rmcprofile.exe"
34623461 elif sys .platform == "darwin" :
34633462 lookfor = "rmcprofile"
3464- pathlist .insert (0 ,"/Applications/RMCProfile.app/Contents/MacOS/exe" )
3465- pathlist .insert (0 ,os .path .expanduser ("~/Applications/RMCProfile.app/Contents/MacOS/exe" ))
3463+ # MacOS: there is only one place where RMCProfile will run
3464+ pathlist = ["/Applications/RMCProfile.app/Contents/MacOS/exe" ]
3465+ #pathlist.insert(0,"/Applications/RMCProfile.app/Contents/MacOS/exe")
3466+ #pathlist.insert(0,os.path.expanduser("~/Applications/RMCProfile.app/Contents/MacOS/exe"))
34663467 else :
34673468 lookfor = "rmcprofile"
34683469 for p in pathlist :
0 commit comments