Author: bugman Date: Wed Oct 15 11:42:25 2014 New Revision: 26284 URL: http://svn.gna.org/viewcvs/relax?rev=26284&view=rev Log: Added an additional check to determine_rnd() of the dauvergne_protocol model-free auto-analysis. This is to try to catch bizarre situations such as bug #22730 (https://gna.org/bugs/?22730), model-free auto-analysis - relax stops and quits at the polate step. The additional check is that if the base model directory is not executable, a RelaxError is raised. Modified: trunk/auto_analyses/dauvergne_protocol.py Modified: trunk/auto_analyses/dauvergne_protocol.py URL: http://svn.gna.org/viewcvs/relax/trunk/auto_analyses/dauvergne_protocol.py?rev=26284&r1=26283&r2=26284&view=diff ============================================================================== --- trunk/auto_analyses/dauvergne_protocol.py (original) +++ trunk/auto_analyses/dauvergne_protocol.py Wed Oct 15 11:42:25 2014 @@ -21,7 +21,7 @@ # Python module imports. from math import pi -from os import F_OK, R_OK, W_OK, access, getcwd, listdir, sep +from os import F_OK, R_OK, W_OK, X_OK, access, getcwd, listdir, sep from os.path import isdir from re import search from time import sleep @@ -506,11 +506,13 @@ if not isdir(base_dir): return 0 - # Is the directory readable and writable. + # Is the directory readable, writable, and executable. if not access(base_dir, R_OK): raise RelaxError("The base model directory '%s' is not readable." % base_dir) if not access(base_dir, W_OK): raise RelaxError("The base model directory '%s' is not writable." % base_dir) + if not access(base_dir, X_OK): + raise RelaxError("The base model directory '%s' is not executable." % base_dir) # Get a list of all files in the directory model. dir_list = listdir(base_dir)