Closed DamienIrving closed 9 years ago
Thanks for that Damien - I think we should be able to get that fixed up pretty easily. I'll have a look at it. I think ensuring that the argument lists get converted to strings when going to the scheduler should do it.
I've pushed a change for this to the devel branch - 42d95978ad38c2edaa54586a9bc5764fd36d0232. It seems to be working for me - could you check out to see if this fixes it up?
I pull across a whole bunch of changes from my fork into devel, so it's possible something may have regressed.
Actually - I just clicked on the link and perhaps that should have been self.cmds = self.cmds + str_args
, not self.cmds.append(str_args)
:) Let me know if it needs to be changed!
If you define a script at https://github.com/CWSL/cwsl-ctools that takes positional arguments that aren't strings (e.g.
argparse
allows you to specificint
andfloat
positional arguments) then I've found thatcwsl/core/scheduler.py
andcwsl/utils/utils.py
will fail when applyingjoin
to the list of positional arguments. I tried to fix this error myself (usingmap(str, positional_argument_list)
) but thencwsl/core/scheduler.py
started throwing different errors which I didn't understand (sorry!).