mailr20213 - /trunk/pipe_control/palmer.py


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

Header


Content

Posted by edward on June 19, 2013 - 14:49:
Author: bugman
Date: Wed Jun 19 14:49:16 2013
New Revision: 20213

URL: http://svn.gna.org/viewcvs/relax?rev=20213&view=rev
Log:
Bug fix for the batch file permissions for executing Art Palmer's Modelfree4 
program.

This was identified in the post 
http://thread.gmane.org/gmane.science.nmr.relax.devel/3953/focus=4000.

The file was set to be executable, but on Unix systems it would end up with 
the permissions
"---x------".


Modified:
    trunk/pipe_control/palmer.py

Modified: trunk/pipe_control/palmer.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/palmer.py?rev=20213&r1=20212&r2=20213&view=diff
==============================================================================
--- trunk/pipe_control/palmer.py (original)
+++ trunk/pipe_control/palmer.py Wed Jun 19 14:49:16 2013
@@ -30,7 +30,7 @@
 from math import pi
 from os import F_OK, access, chdir, chmod, getcwd, listdir, remove, sep, 
system
 from re import match, search
-from stat import S_IEXEC
+from stat import S_IRWXU|S_IRGRP|S_IROTH
 PIPE, Popen = None, None
 if dep_check.subprocess_module:
     from subprocess import PIPE, Popen
@@ -172,7 +172,7 @@
     run = open_write_file('run.sh', dir, force)
     create_run(run, binary=binary, dir=dir)
     run.close()
-    chmod(dir + sep+'run.sh', S_IEXEC)
+    chmod(dir + sep+'run.sh', S_IRWXU|S_IRGRP|S_IROTH)
 
 
 def create_mfdata(file, spin=None, spin_id=None, num_frq=None, frq=None):




Related Messages


Powered by MHonArc, Updated Wed Jun 19 15:00:02 2013