1a2,4 > import os > import shutil > 10a14,24 > if kwargs.get('isolation') and kwargs['isolation'].get('rootfs'): > rootfs = kwargs['isolation']['rootfs'] > > if not os.path.exists(rootfs + '/app/php/'): > os.makedirs(rootfs + '/app/php/') > > if not os.path.exists(rootfs + '/app/php/' + script): > shutil.copytree(script_path, rootfs + '/app/php/' + script) > > script_path = '/app/php/' + script >