Author: bugman Date: Wed Jun 19 16:11:17 2013 New Revision: 20217 URL: http://svn.gna.org/viewcvs/relax?rev=20217&view=rev Log: Fix for the setting of the execute permissions on the grace2images.py scripts. The problem was identified in the post at http://thread.gmane.org/gmane.science.nmr.relax.devel/3953/focus=4000 and This is within the relax_disp.plot_disp_curves user function after the grace2images.py script has been created. The commit matches the changes of r20213 from trunk for the Modelfree4 batch script. Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=20217&r1=20216&r2=20217&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Wed Jun 19 16:11:17 2013 @@ -47,6 +47,8 @@ from pipe_control.mol_res_spin import exists_mol_res_spin_data, return_spin, spin_loop from pipe_control.result_files import add_result_file from specific_analyses.relax_disp.variables import CPMG_EXP, FIXED_TIME_EXP, R1RHO_EXP +from stat import S_IRWXU, S_IRGRP, S_IROTH +from os import chmod, path, sep @@ -518,8 +520,12 @@ # Write the file. script_grace2images(file=file) - # Close the file. + # Close the batch script, then make it executable. file.close() + if dir: + chmod(dir + sep + file_name, S_IRWXU|S_IRGRP|S_IROTH) + else: + chmod(file_name, S_IRWXU|S_IRGRP|S_IROTH) def plot_exp_curves(file=None, dir=None, force=None, norm=None):