regular expression in job.py too greedy
one of the tasks of job.py is to translate
my_job.sh (originally file://my_job.sh at the client end) into /full/path/to/my_job.sh. It does this with the following code snippet:(.*)%s' % jobsub_command.filename
command_tag = '
jobsub_args = re.sub(command_tag, command_file_path, jobsub_args)
logger.log('jobsub_args (subbed): %s' % jobsub_args)
The problem is, substitution occurs on the first instance of '@' in jobsub_args. If for instance, if an email address is passed in to jobsub_args the substitution is all wrong and submission breaks.
Change this RE to catch the last instance of '@'.