# try the directory
homedir, _, web_path = dir.partition("/web_scripts")
if web_path:
+ name = user.passwd(dir).name
yield urlparse.ParseResult(
"http",
- util.get_dir_owner(homedir) + ".scripts.mit.edu",
+ name + ".scripts.mit.edu",
web_path.rstrip('/'),
"", "", "")
yield urlparse.ParseResult(
"http",
"scripts.mit.edu",
- "/~" + util.get_dir_owner(homedir) + web_path.rstrip('/'),
+ "/~" + name + web_path.rstrip('/'),
"", "", "")
else:
logging.info("Directory location did not contain web_scripts: %s", dir)