Commit d3adba79 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to pass empty args and extend list by while passing more.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45833 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb34d581
......@@ -5,10 +5,12 @@ import subprocess
import time
def execute(args):
def execute(args=None):
"""Portable execution with process replacement"""
# Note: Candidate for slapos.lib.recipe
os.execv(args[0], args)
if args is None:
args = []
os.execv(args[0], args + sys.argv[1:])
child_pg = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment