lib/coderunner/instance_methods.rb in coderunner-0.17.4 vs lib/coderunner/instance_methods.rb in coderunner-0.17.5

- old
+ new

@@ -1180,10 +1180,11 @@ @submission_script = script # A hook... default is to do nothing @submission_script = @run_class.modify_job_script(self, runs, @submission_script) # To get out of job_chain_files folder @submission_script = "cd .. \n" + @submission_script + @code_run_environment = runs[0].code_run_environment old_job_nos = queue_status.scan(/^\s*(\d+)/).map{|match| match[0].to_i} ################ Submit the run Dir.chdir('job_chain_files'){job_no = execute} ################ job_no = get_new_job_no(old_job_nos) unless job_no.kind_of? Integer # (if the execute command does not return the job number, look for it manually) @@ -1236,10 +1237,10 @@ return '' unless @executable File.dirname(@executable) end def code_run_environment - run_class.new(self).code_run_environment + @code_run_environment end def run_command #ep 'submission_script', @submission_script @submission_script