def setup(self):
    'Set up this jailer context.'
    os.makedirs((self.chroot_base if (self.chroot_base is not None) else JAILER_DEFAULT_CHROOT), exist_ok=True)
    if self.netns:
        run('ip netns add {}'.format(self.netns), shell=True, check=True)
Set up this jailer context.
def setup(self):
    
    os.makedirs((self.chroot_base if (self.chroot_base is not None) else JAILER_DEFAULT_CHROOT), exist_ok=True)
    if self.netns:
        run('ip netns add {}'.format(self.netns), shell=True, check=True)