Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Maurais committed Apr 18, 2021
1 parent c080d55 commit 97fbaa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pbs_do/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def grouper(iterable, n):
yield iterable[ndx:min(ndx + n, l)]



def makePBS(command, initial_args, mem, ppn, walltime, wd, arg_list,
nArgs=1, n_child_proc=None, replace_str=None, shell='/bin/tcsh',
writeStdout=False, verbose=False):
Expand Down Expand Up @@ -61,7 +60,7 @@ def makePBS(command, initial_args, mem, ppn, walltime, wd, arg_list,
'''

global PBS_COUNT
pbsName = '{}_{}.pbs'.format(command, PBS_COUNT)
pbsName = '{}_{}.pbs'.format(os.path.splitext(os.path.basename(command))[0], PBS_COUNT)
n_child_proc = ppn if n_child_proc is None else n_child_proc
_arg_lists = getFileLists(n_child_proc, arg_list, check=False)

Expand Down Expand Up @@ -325,6 +324,7 @@ def main():
proc = subprocess.Popen([command], cwd=wd, shell=True)
proc.wait()


if __name__ == '__main__':
main()

0 comments on commit 97fbaa4

Please sign in to comment.