136
136
# Split up req.path again, this time with respect to the jail
137
137
(_, jail_dir, path) = studpath.url_to_jailpaths(req.path)
138
139
(working_dir, _) = os.path.split(path)
139
140
# Now jail_dir is the jail directory relative to the jails root.
140
141
# Note that the trampoline has jails root hard-coded for security.
141
142
# path is the filename relative to the user's jail.
142
143
# working_dir is the directory containing the file relative to the user's
145
148
return interpreter(uid, jail_dir, working_dir, path, req)