Skip to content

Commit

Permalink
Fixes for LSF
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrucher authored and satra committed Aug 1, 2010
1 parent 7952c77 commit bfb3a62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IPython/kernel/scripts/ipcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re
import sys
import signal
import stat
import tempfile
pjoin = os.path.join

Expand Down Expand Up @@ -332,6 +333,8 @@ def start(self, n):
self._temp_file.file.write(default_script)
self.template_file = self._temp_file.name
self._temp_file.file.flush()
os.chmod(self._temp_file.name, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
self._temp_file.file.close()
d = getProcessOutput(self.submit_command,
[self.template_file],
env=os.environ)
Expand Down

0 comments on commit bfb3a62

Please sign in to comment.