Commit 8248887f authored by Daniel STAN's avatar Daniel STAN

robots_perso: oubli d'un os.*path*.expanduser

parent 096a243c
......@@ -11,7 +11,7 @@ robots_file = '/usr/scripts/var/perso/robots.txt'
robots = collections.defaultdict(lambda:collections.defaultdict(list))
def add_robots(user, robots):
robots_path = os.expanduser('~%s/www/robots.txt' % user)
robots_path = os.path.expanduser('~%s/www/robots.txt' % user)
if os.path.exists(robots_path):
rp = robotparser.RobotFileParser()
rp.parse(open(robots_path))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment