Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Change return type of getter in ExtJob
Browse files Browse the repository at this point in the history
We like to avoid passing the C type containers out into the
python interface, and rather create ordinary python list.
  • Loading branch information
lars-petter-hauge committed Oct 26, 2020
1 parent d989ef3 commit b2cbafd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/res/job_queue/ext_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@ def get_license_path(self):
return self._get_license_path()

def get_arglist(self):
return self._get_arglist()
# The return type is cast from a <StringList> to a regular Python list.
return list(self._get_arglist())

def get_argvalues(self):
return self._get_argvalues()
# The return type is cast from a <StringList> to a regular Python list.
return list(self._get_argvalues())

def set_arglist(self, args):
return self._set_arglist(args)
Expand Down

0 comments on commit b2cbafd

Please sign in to comment.