mailr19929 - /branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 06, 2013 - 23:58:
Author: bugman
Date: Thu Jun  6 23:58:16 2013
New Revision: 19929

URL: http://svn.gna.org/viewcvs/relax?rev=19929&view=rev
Log:
Fixes for the file permission setting on the CMPGFit batch script.

The correct file mode is now set for Unix-based systems.


Modified:
    branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py

Modified: branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py?rev=19929&r1=19928&r2=19929&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py Thu Jun  6 
23:58:16 2013
@@ -28,7 +28,7 @@
 # Python module imports.
 from math import pi
 from os import F_OK, access, chmod, sep
-from stat import S_IEXEC
+from stat import S_IRGRP, S_IROTH, S_IRWXU
 PIPE, Popen = None, None
 if dep_check.subprocess_module:
     from subprocess import PIPE, Popen
@@ -172,7 +172,7 @@
 
     # Close the batch script, then make it executable.
     batch.close()
-    chmod(dir + sep + 'batch_run.sh', S_IEXEC)
+    chmod(dir + sep + 'batch_run.sh', S_IRWXU|S_IRGRP|S_IROTH)
 
 
 def create_spin_input(function=None, spin=None, spin_id=None, dir=None):




Related Messages


Powered by MHonArc, Updated Fri Jun 07 00:40:02 2013