diff --git a/larch/xrd/struct2xas.py b/larch/xrd/struct2xas.py index 3fe399986..61fc684d4 100644 --- a/larch/xrd/struct2xas.py +++ b/larch/xrd/struct2xas.py @@ -7,7 +7,6 @@ # main imports import os -import stat import json import time from dataclasses import dataclass @@ -1019,13 +1018,7 @@ def make_sbatch(self, template: str, **kwargs): with open(batch_script, "w") as fp, open(template) as tp: fp.write(tp.read().format(**kwargs)) logger.info(f"written {fp.name}") - - # Make the SLURM batch script executable. - current_permissions = os.stat(batch_script) - os.chmod( - batch_script, - current_permissions.st_mode | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH, - ) + os.chmod(batch_script, 0o755) def make_input_feff( self,