47
47
def start(self, req, cwd=''):
48
48
working_dir = os.path.join("/home", req.user.login, cwd)
53
51
jail_path = os.path.join(req.config['paths']['jails']['mounts'],
55
cons = ivle.console.Console(req.config, uid, jail_path, working_dir)
53
cons = ivle.console.Console(req.config, req.user, jail_path,
57
56
# Assemble the key and return it. Yes, it is double-encoded.
58
57
return {'key': cjson.encode({"host": cons.host,