Author: bugman Date: Mon Oct 1 21:44:20 2012 New Revision: 17626 URL: http://svn.gna.org/viewcvs/relax?rev=17626&view=rev Log: Python 3 - Fix for an os.chmod() call by using the stat module rather than the number 0775. The number 0755 is no longer valid in Python 3. Modified: trunk/generic_fns/palmer.py Modified: trunk/generic_fns/palmer.py URL: http://svn.gna.org/viewcvs/relax/trunk/generic_fns/palmer.py?rev=17626&r1=17625&r2=17626&view=diff ============================================================================== --- trunk/generic_fns/palmer.py (original) +++ trunk/generic_fns/palmer.py Mon Oct 1 21:44:20 2012 @@ -27,6 +27,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 subprocess import PIPE, Popen import sys @@ -166,7 +167,7 @@ run = open_write_file('run.sh', dir, force) create_run(run, binary=binary, dir=dir) run.close() - chmod(dir + sep+'run.sh', 0755) + chmod(dir + sep+'run.sh', S_IEXEC) def create_mfdata(file, spin=None, spin_id=None, num_frq=None, frq=None):